From 0b518aa983dcdec846aecb61bc35aa452bf08140 Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Mon, 11 Jul 2022 21:44:37 -0700 Subject: [PATCH] Test security headers --- server/config/calibre-web/docker-compose.yml | 2 +- server/config/traefik/config/middlewares.yaml | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/server/config/calibre-web/docker-compose.yml b/server/config/calibre-web/docker-compose.yml index 9cdc3ac..62e9ef9 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=testSchemeHeaders@file + - traefik.http.routers.calibre-dev.middlewares=securityheaders@file networks: - web diff --git a/server/config/traefik/config/middlewares.yaml b/server/config/traefik/config/middlewares.yaml index fcb380d..6a6ca53 100644 --- a/server/config/traefik/config/middlewares.yaml +++ b/server/config/traefik/config/middlewares.yaml @@ -44,11 +44,3 @@ http: stsSeconds: 63072000 stsPreload: true - testSchemeHeaders: - headers: - #customResponseHeaders: - # X-Scheme: https - customRequestHeaders: - X-Scheme: https - #hostsProxyHeaders: - # - "X-Scheme"