From ff8daf95c910a4dc39625dfa69d082dfbb15d157 Mon Sep 17 00:00:00 2001 From: Ruben Hensen Date: Fri, 21 Mar 2025 18:20:21 +0100 Subject: [PATCH] Add redirect from www to root with rules --- apps/templates/mbgwp-helm.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/templates/mbgwp-helm.yaml b/apps/templates/mbgwp-helm.yaml index 49e0cd4..1e4404d 100644 --- a/apps/templates/mbgwp-helm.yaml +++ b/apps/templates/mbgwp-helm.yaml @@ -29,7 +29,7 @@ spec: cert-manager.io/cluster-issuer: prod-cluster-issuer nginx.ingress.kubernetes.io/proxy-body-size: 1G nginx.ingress.kubernetes.io/server-snippet: | - return 301 $scheme://scoutingmbg.nl/$request_uri; + return 301 $scheme://scoutingmbg.nl$request_uri; tls: true tlsWwwPrefix: false selfSigned: false @@ -42,7 +42,9 @@ spec: - scoutingmbg.nl - www.scoutingmbg.nl secrets: [] - extraRules: [] + extraRules: + - host: www.scoutingmbg.nl + persistence: ## @param persistence.enabled Enable persistence using Persistent Volume Claims ##