caddy-gitea-pages: Caddyfile mit gitea-Modul + default_owner/repo/branch
This commit is contained in:
parent
52e55e9cca
commit
c26c2e7e94
14
Caddyfile.docs
Normal file
14
Caddyfile.docs
Normal 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
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -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`)"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user