From 4e9701b796337775de461e6ceff6639a46e46d50 Mon Sep 17 00:00:00 2001
From: Patrick Jentsch
Date: Mon, 12 Oct 2020 14:01:42 +0200
Subject: [PATCH] Add neccessary header to docker-compose.traefik.yml.
---
docker-compose.traefik.yml | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/docker-compose.traefik.yml b/docker-compose.traefik.yml
index 53fbdb9f..195a5702 100644
--- a/docker-compose.traefik.yml
+++ b/docker-compose.traefik.yml
@@ -14,13 +14,15 @@ services:
- "traefik.docker.network=reverse-proxy"
- "traefik.enable=true"
### ###
+ - "traefik.http.middlewares.nopaque-header.headers.customrequestheaders.X-Forwarded-Proto=http"
- "traefik.http.routers.nopaque.entrypoints=web"
- - "traefik.http.routers.nopaque.middlewares=redirect-to-https@file"
+ - "traefik.http.routers.nopaque.middlewares=nopaque-header, redirect-to-https@file"
- "traefik.http.routers.nopaque.rule=Host(`${NOPAQUE_DOMAIN:-localhost}`)"
### ###
### ###
+ - "traefik.http.middlewares.nopaque-secure-header.headers.customrequestheaders.X-Forwarded-Proto=https"
- "traefik.http.routers.nopaque-secure.entrypoints=web-secure"
- - "traefik.http.routers.nopaque-secure.middlewares=hsts-header@file"
+ - "traefik.http.routers.nopaque-secure.middlewares=hsts-header@file, nopaque-secure-header"
- "traefik.http.routers.nopaque-secure.rule=Host(`${NOPAQUE_DOMAIN:-localhost}`)"
- "traefik.http.routers.nopaque-secure.tls.certresolver="
- "traefik.http.routers.nopaque-secure.tls.options=intermediate@file"