From b43ec14424f899fb6ddd010455c979816f7002fb Mon Sep 17 00:00:00 2001
From: Patrick Jentsch
Date: Mon, 15 Nov 2021 14:19:07 +0100
Subject: [PATCH] Change docker-compose traefik config to match new development
toolbox
---
docker-compose.traefik.yml | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/docker-compose.traefik.yml b/docker-compose.traefik.yml
index afd688f9..c261b2d2 100644
--- a/docker-compose.traefik.yml
+++ b/docker-compose.traefik.yml
@@ -15,18 +15,18 @@ 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=nopaque-header, redirect-to-https@file"
- - "traefik.http.routers.nopaque.rule=Host(`${SERVER_NAME}`)"
+ - "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}`)"
### ###
### ###
- - "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, nopaque-secure-header"
- - "traefik.http.routers.nopaque-secure.rule=Host(`${SERVER_NAME}`)"
- - "traefik.http.routers.nopaque-secure.tls.certresolver="
- - "traefik.http.routers.nopaque-secure.tls.options=intermediate@file"
+ - "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="
+ - "traefik.http.routers.https-nopaque.tls.options=intermediate@file"
### ###
networks:
- default