From a86f0fde20c05a293445284166358df5d1b7d29f Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Wed, 6 Jul 2022 17:46:52 -0700 Subject: [PATCH] Switch middleware name from security-headers to securityheaders --- homelab/server/config/authentik/docker-compose.yml | 2 +- homelab/server/config/calibre-web/docker-compose.yml | 2 +- homelab/server/config/traefik/config/middlewares.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/homelab/server/config/authentik/docker-compose.yml b/homelab/server/config/authentik/docker-compose.yml index e03f5fb9..3a289ca6 100644 --- a/homelab/server/config/authentik/docker-compose.yml +++ b/homelab/server/config/authentik/docker-compose.yml @@ -61,7 +61,7 @@ services: labels: traefik.http.routers.authentik.rule: Host(`authentik.jafner.net`) traefik.http.routers.authentik.tls.certresolver: lets-encrypt - traefik.http.routers.authentik.middlewares: security-headers@file + traefik.http.routers.authentik.middlewares: securityheaders@file traefik.http.services.authentik.loadbalancer.server.port: 9000 worker: diff --git a/homelab/server/config/calibre-web/docker-compose.yml b/homelab/server/config/calibre-web/docker-compose.yml index 5cdeac89..253256b3 100644 --- a/homelab/server/config/calibre-web/docker-compose.yml +++ b/homelab/server/config/calibre-web/docker-compose.yml @@ -13,7 +13,7 @@ services: labels: - traefik.http.routers.calibre-rpg.rule=Host(`rpg.calibre.jafner.net`) - traefik.http.routers.calibre-rpg.tls.certresolver=lets-encrypt - - traefik.http.routers.calibre-rpg.middlewares=authentik@file,security-headers@file + - traefik.http.routers.calibre-rpg.middlewares=authentik@file,securityheaders@file networks: - web diff --git a/homelab/server/config/traefik/config/middlewares.yaml b/homelab/server/config/traefik/config/middlewares.yaml index 6dfe6f95..28a6ef98 100644 --- a/homelab/server/config/traefik/config/middlewares.yaml +++ b/homelab/server/config/traefik/config/middlewares.yaml @@ -23,7 +23,7 @@ http: - X-authentik-meta-provider - X-authentik-meta-app - X-authentik-meta-version - security-headers: + securityheaders: headers: customResponseHeaders: X-Robots-Tag: "none,noarchive,nosnippet,notranslate,noimageindex"