mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-14 00:35:41 +00:00
38 lines
1.4 KiB
YAML
38 lines
1.4 KiB
YAML
version: "3.5"
|
|
|
|
networks:
|
|
traefik:
|
|
external: true
|
|
name: "traefik"
|
|
|
|
services:
|
|
nopaque:
|
|
environment:
|
|
- NOPAQUE_PROXY_FIX_X_FOR=1
|
|
- NOPAQUE_PROXY_FIX_X_HOST=1
|
|
- NOPAQUE_PROXY_FIX_X_PORT=1
|
|
- NOPAQUE_PROXY_FIX_X_PREFIX=0
|
|
- NOPAQUE_PROXY_FIX_X_PROTO=1
|
|
labels:
|
|
- "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"
|
|
# 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"
|
|
# Replace <nopaque-domain> with your domain
|
|
- "traefik.http.routers.https-nopaque.rule=Host(`<nopaque-domain>`)"
|
|
- "traefik.http.routers.https-nopaque.tls.certresolver=<CERTRESOLVER>"
|
|
- "traefik.http.routers.https-nopaque.tls.options=intermediate@file"
|
|
### </https> ###
|
|
networks:
|
|
- default
|
|
- traefik
|