From 6e114c903e89dec95f87cec5ee363fb4d383ccb3 Mon Sep 17 00:00:00 2001 From: Dreaded_X Date: Fri, 22 Nov 2024 04:19:32 +0100 Subject: [PATCH] Apply default headers to all routes --- apps/lldap/ingress.yaml | 3 --- apps/whoami.yaml | 2 -- infrastructure/controllers/traefik.yaml | 3 +++ 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/apps/lldap/ingress.yaml b/apps/lldap/ingress.yaml index 1043361..6e74f84 100644 --- a/apps/lldap/ingress.yaml +++ b/apps/lldap/ingress.yaml @@ -8,9 +8,6 @@ spec: routes: - match: Host(`users.${domain}`) kind: Rule - middlewares: - - name: default-headers - namespace: default services: - name: lldap port: 17170 diff --git a/apps/whoami.yaml b/apps/whoami.yaml index d735c0f..e87706f 100644 --- a/apps/whoami.yaml +++ b/apps/whoami.yaml @@ -49,8 +49,6 @@ spec: routes: - match: Host(`whoami.${domain}`) kind: Rule - middlewares: - - name: default-headers services: - name: whoami port: 80 diff --git a/infrastructure/controllers/traefik.yaml b/infrastructure/controllers/traefik.yaml index 0d41c02..81c7259 100644 --- a/infrastructure/controllers/traefik.yaml +++ b/infrastructure/controllers/traefik.yaml @@ -44,6 +44,9 @@ spec: web: redirectTo: port: websecure + websecure: + middlewares: + - default-default-headers@kubernetescrd providers: kubernetesCRD: