diff --git a/Caddyfile.docs b/Caddyfile.docs deleted file mode 100644 index 483fdc4..0000000 --- a/Caddyfile.docs +++ /dev/null @@ -1,14 +0,0 @@ -# caddy-gitea-pages: Serve mkdocs output from gh-pages branch. -# SSL wird von Traefik terminiert, Caddy hört nur auf HTTP :80. -:80 { - gitea { - server {$GITEA_SERVER} - token {$GITEA_TOKEN} - domain gwoe-docs.toppyr.de - # Default-Repo für Requests ohne Owner/Repo im Pfad: - # Alle Requests auf / gehen an tobias/gwoe-antragspruefer gh-pages. - default_owner tobias - default_repo gwoe-antragspruefer - default_branch gh-pages - } -} diff --git a/docker-compose.yml b/docker-compose.yml index 4e1bfc2..5667a24 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -23,21 +23,18 @@ services: networks: - collaboration_collaboration - # Doku-Hosting via caddy-gitea-pages (#62 Phase 2). - # Liest automatisch aus dem gh-pages-Branch. mkdocs build → git push - # origin gh-pages → Seite live unter gwoe-docs.toppyr.de. + # Doku-Hosting (#62 Phase 2): mkdocs-Output als statische Site. + # URL: https://docs.toppyr.de/gwoe-antragspruefer/ + # Update: mkdocs build && scp -r site/* vserver:/opt/gwoe-antragspruefer/docs-site/ gwoe-docs: - image: ghcr.io/d7z-project/caddy-gitea-pages:nightly + image: nginx:alpine container_name: gwoe-docs restart: unless-stopped - environment: - - GITEA_SERVER=https://repo.toppyr.de - - GITEA_TOKEN=${GITEA_TOKEN} volumes: - - ./Caddyfile.docs:/etc/caddy/Caddyfile:ro + - ./docs-site:/usr/share/nginx/html/gwoe-antragspruefer:ro labels: - "traefik.enable=true" - - "traefik.http.routers.gwoe-docs.rule=Host(`gwoe-docs.toppyr.de`)" + - "traefik.http.routers.gwoe-docs.rule=Host(`docs.toppyr.de`)" - "traefik.http.routers.gwoe-docs.entrypoints=websecure" - "traefik.http.routers.gwoe-docs.tls=true" - "traefik.http.routers.gwoe-docs.tls.certresolver=letsencrypt" diff --git a/mkdocs.yml b/mkdocs.yml index 1a708ac..6f25ec9 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -1,5 +1,5 @@ site_name: GWÖ-Antragsprüfer Docs -site_url: https://gwoe-docs.toppyr.de +site_url: https://docs.toppyr.de/gwoe-antragspruefer/ repo_url: https://repo.toppyr.de/tobias/gwoe-antragspruefer repo_name: tobias/gwoe-antragspruefer