From 46710f962e574df3a95d6db8486a86200ce220ef Mon Sep 17 00:00:00 2001 From: Berry den Hartog <38954346+berrydenhartog@users.noreply.github.com> Date: Mon, 27 Jan 2025 16:55:42 +0100 Subject: [PATCH] Fix for redirect --- base/oauth2-proxy/ingress.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/base/oauth2-proxy/ingress.yaml b/base/oauth2-proxy/ingress.yaml index ffa18fb..1e516dc 100644 --- a/base/oauth2-proxy/ingress.yaml +++ b/base/oauth2-proxy/ingress.yaml @@ -4,6 +4,12 @@ metadata: name: ing annotations: cert-manager.io/cluster-issuer: letsencrypt-prod + nginx.ingress.kubernetes.io/rewrite-target: / + nginx.ingress.kubernetes.io/configuration-snippet: | + if ($request_uri ~* "^/admin") { + return 302 https://meet.la-suite.apps.digilab.network$request_uri; + } + spec: ingressClassName: nginx rules: @@ -17,6 +23,7 @@ spec: number: 4180 path: / pathType: Prefix + tls: - hosts: - oauth2-proxy.la-suite.apps.digilab.network