Add testSchemeHeaders for passing X-Scheme: https

This commit is contained in:
Joey Hafner 2022-07-11 11:00:37 -07:00
parent 0a40c254a4
commit f3268d41de
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -42,3 +42,7 @@ http:
stsIncludeSubdomains: true
stsSeconds: 63072000
stsPreload: true
testSchemeHeaders:
headers:
customResponseHeaders:
X-Scheme: https