2020-10-08 10:34:02 +00:00
|
|
|
################################################################################
|
2020-10-21 11:07:10 +00:00
|
|
|
# Don't forget to set the proxy variables in your nopaque.env #
|
|
|
|
# Traefik sets the X_FOR, X_HOST, X_PORT and X_PROTO headers by default #
|
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:
|
|
|
|
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"
|
|
|
|
- "traefik.http.routers.http-nopaque.middlewares=http_nopaque-headers, redirect-to-https@file"
|
|
|
|
- "traefik.http.routers.http-nopaque.rule=Host(`${SERVER_NAME}`)"
|
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"
|
|
|
|
- "traefik.http.routers.https-nopaque.rule=Host(`${SERVER_NAME}`)"
|
|
|
|
- "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
|
|
|
|
- reverse-proxy
|