mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-25 10:54:18 +00:00
34 lines
1.5 KiB
YAML
34 lines
1.5 KiB
YAML
################################################################################
|
|
# 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 #
|
|
################################################################################
|
|
version: "3.5"
|
|
|
|
networks:
|
|
reverse-proxy:
|
|
external:
|
|
name: reverse-proxy
|
|
|
|
services:
|
|
nopaque:
|
|
labels:
|
|
- "traefik.docker.network=reverse-proxy"
|
|
- "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.rule=Host(`${SERVER_NAME}`)"
|
|
### </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.rule=Host(`${SERVER_NAME}`)"
|
|
- "traefik.http.routers.https-nopaque.tls.certresolver=<CERTRESOLVER>"
|
|
- "traefik.http.routers.https-nopaque.tls.options=intermediate@file"
|
|
### </https> ###
|
|
networks:
|
|
- default
|
|
- reverse-proxy
|