From 2b2a363127ea8028333ec75fdb78b26d24135ad9 Mon Sep 17 00:00:00 2001 From: Dotty Dotter Date: Fri, 10 Apr 2026 09:47:06 +0200 Subject: [PATCH] #62 Phase 2: Pivot nginx + docs.toppyr.de/gwoe-antragspruefer/ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit caddy-gitea-pages verworfen — dessen URL-Schema ({owner}.{domain}/{repo}) passt nicht für Single-Project-Hosting ohne DNS-Wildcards auf Sub-Sub- Domains. Stattdessen simples nginx:alpine mit statischem Volume-Mount. URL: https://docs.toppyr.de/gwoe-antragspruefer/ Der nginx-Container mounted docs-site/ nach /usr/share/nginx/html/gwoe-antragspruefer/ — Traefik routet alles auf Host docs.toppyr.de an den Container, nginx served den Pfad 1:1. Skaliert für weitere Repos: einfach ein zweites Volume-Mount für /usr/share/nginx/html/anderes-repo/ einrichten. SSL: Traefik, nicht nginx/caddy. DNS: *.toppyr.de Wildcard deckt docs.toppyr.de ab. Update-Workflow: cd webapp && mkdocs build scp -r site/* vserver:/opt/gwoe-antragspruefer/docs-site/ Caddyfile.docs entfernt (war caddy-gitea-pages-spezifisch). Refs: #62 --- Caddyfile.docs | 14 -------------- docker-compose.yml | 15 ++++++--------- mkdocs.yml | 2 +- 3 files changed, 7 insertions(+), 24 deletions(-) delete mode 100644 Caddyfile.docs 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