diff --git a/Caddyfile.docs b/Caddyfile.docs new file mode 100644 index 0000000..483fdc4 --- /dev/null +++ b/Caddyfile.docs @@ -0,0 +1,14 @@ +# 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 8286c51..4e1bfc2 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -33,6 +33,8 @@ services: environment: - GITEA_SERVER=https://repo.toppyr.de - GITEA_TOKEN=${GITEA_TOKEN} + volumes: + - ./Caddyfile.docs:/etc/caddy/Caddyfile:ro labels: - "traefik.enable=true" - "traefik.http.routers.gwoe-docs.rule=Host(`gwoe-docs.toppyr.de`)"