diff --git a/server/config/calibre-web/docker-compose.yml b/server/config/calibre-web/docker-compose.yml index 62e9ef9..b0221bb 100644 --- a/server/config/calibre-web/docker-compose.yml +++ b/server/config/calibre-web/docker-compose.yml @@ -64,7 +64,7 @@ services: labels: - traefik.http.routers.calibre-dev.rule=Host(`dev.calibre.jafner.net`) - traefik.http.routers.calibre-dev.tls.certresolver=lets-encrypt - - traefik.http.routers.calibre-dev.middlewares=securityheaders@file + - traefik.http.routers.calibre-dev.middlewares=securityheaders@file,testSchemeHeaders@file networks: - web diff --git a/server/config/traefik/config/middlewares.yaml b/server/config/traefik/config/middlewares.yaml index 6def79d..93e1423 100644 --- a/server/config/traefik/config/middlewares.yaml +++ b/server/config/traefik/config/middlewares.yaml @@ -42,3 +42,7 @@ http: stsIncludeSubdomains: true stsSeconds: 63072000 stsPreload: true + testSchemeHeaders: + headers: + customResponseHeaders: + X-Scheme: https