A lot of generalization for better scaling and overview

This commit is contained in:
Patrick Jentsch
2024-04-30 16:00:06 +02:00
parent 485a0155c6
commit 543276d766
23 changed files with 138 additions and 616 deletions

View File

@ -6,6 +6,7 @@ networks:
services:
nopaque:
environment:
- NOPAQUE_PROXY_FIX_ENABLED=True
- NOPAQUE_PROXY_FIX_X_FOR=1
- NOPAQUE_PROXY_FIX_X_HOST=1
- NOPAQUE_PROXY_FIX_X_PORT=1
@ -15,16 +16,14 @@ services:
- "traefik.docker.network=traefik"
- "traefik.enable=true"
### <http> ###
- "traefik.http.middlewares.http-nopaque-headers.headers.customrequestheaders.X-Forwarded-Proto=http"
- "traefik.http.routers.http-nopaque.entrypoints=http"
- "traefik.http.routers.http-nopaque.middlewares=http-nopaque-headers, redirect-to-https@file"
- "traefik.http.routers.http-nopaque.middlewares=redirect-to-https@file"
# Replace <nopaque-domain> with your domain
- "traefik.http.routers.http-nopaque.rule=Host(`<nopaque-domain>`)"
### </http> ###
### <https> ###
- "traefik.http.middlewares.https-nopaque-headers.headers.customrequestheaders.X-Forwarded-Proto=https"
- "traefik.http.routers.https-nopaque.entrypoints=https"
- "traefik.http.routers.https-nopaque.middlewares=hsts-header@file, https-nopaque-headers"
- "traefik.http.routers.https-nopaque.middlewares=hsts-header@file"
# Replace <nopaque-domain> with your domain
- "traefik.http.routers.https-nopaque.rule=Host(`<nopaque-domain>`)"
- "traefik.http.routers.https-nopaque.tls.certresolver=<CERTRESOLVER>"