2020-10-08 10:34:02 +00:00
|
|
|
version: "3.5"
|
|
|
|
|
|
|
|
networks:
|
2022-02-03 11:39:16 +00:00
|
|
|
traefik:
|
|
|
|
external: true
|
|
|
|
name: "traefik"
|
2020-10-08 10:34:02 +00:00
|
|
|
|
|
|
|
services:
|
|
|
|
nopaque:
|
2023-09-26 13:02:02 +00:00
|
|
|
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
|
2020-10-08 10:34:02 +00:00
|
|
|
labels:
|
2022-02-03 11:39:16 +00:00
|
|
|
- "traefik.docker.network=traefik"
|
2020-10-08 10:34:02 +00:00
|
|
|
- "traefik.enable=true"
|
|
|
|
### <http> ###
|
2021-11-15 13:19:07 +00:00
|
|
|
- "traefik.http.middlewares.http-nopaque-headers.headers.customrequestheaders.X-Forwarded-Proto=http"
|
|
|
|
- "traefik.http.routers.http-nopaque.entrypoints=http"
|
2022-02-08 14:49:50 +00:00
|
|
|
- "traefik.http.routers.http-nopaque.middlewares=http-nopaque-headers, redirect-to-https@file"
|
2022-04-04 11:31:09 +00:00
|
|
|
# Replace <nopaque-domain> with your domain
|
|
|
|
- "traefik.http.routers.http-nopaque.rule=Host(`<nopaque-domain>`)"
|
2020-10-08 10:34:02 +00:00
|
|
|
### </http> ###
|
|
|
|
### <https> ###
|
2021-11-15 13:19:07 +00:00
|
|
|
- "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"
|
2022-04-04 11:31:09 +00:00
|
|
|
# Replace <nopaque-domain> with your domain
|
|
|
|
- "traefik.http.routers.https-nopaque.rule=Host(`<nopaque-domain>`)"
|
2021-11-15 13:19:07 +00:00
|
|
|
- "traefik.http.routers.https-nopaque.tls.certresolver=<CERTRESOLVER>"
|
|
|
|
- "traefik.http.routers.https-nopaque.tls.options=intermediate@file"
|
2020-10-08 10:34:02 +00:00
|
|
|
### </https> ###
|
|
|
|
networks:
|
|
|
|
- default
|
2022-02-17 08:06:37 +00:00
|
|
|
- traefik
|