caddy-gitea-pages: Caddyfile mit gitea-Modul + default_owner/repo/branch

This commit is contained in:
Dotty Dotter 2026-04-10 09:45:12 +02:00
parent 52e55e9cca
commit c26c2e7e94
2 changed files with 16 additions and 0 deletions

14
Caddyfile.docs Normal file
View File

@ -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
}
}

View File

@ -33,6 +33,8 @@ services:
environment: environment:
- GITEA_SERVER=https://repo.toppyr.de - GITEA_SERVER=https://repo.toppyr.de
- GITEA_TOKEN=${GITEA_TOKEN} - GITEA_TOKEN=${GITEA_TOKEN}
volumes:
- ./Caddyfile.docs:/etc/caddy/Caddyfile:ro
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"
- "traefik.http.routers.gwoe-docs.rule=Host(`gwoe-docs.toppyr.de`)" - "traefik.http.routers.gwoe-docs.rule=Host(`gwoe-docs.toppyr.de`)"