From 629e2814fed0658c00a28a3813928b6e7bb3b1db Mon Sep 17 00:00:00 2001 From: Robbie Blaine Date: Mon, 6 May 2024 11:07:38 +0200 Subject: [PATCH] Redirect `auth.yoma.world` -> `yoma.world/auth` --- helm/keycloak/conf/prod/values.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/helm/keycloak/conf/prod/values.yaml b/helm/keycloak/conf/prod/values.yaml index f679cf2bf..58a182fc2 100644 --- a/helm/keycloak/conf/prod/values.yaml +++ b/helm/keycloak/conf/prod/values.yaml @@ -11,7 +11,13 @@ ingress: - host: auth.yoma.world external: enabled: true + annotations: + nginx.ingress.kubernetes.io/configuration-snippet: |- + if ($host = 'auth.yoma.world') { + rewrite ^ https://yoma.world/auth$request_uri permanent; + } rules: + - host: auth.yoma.world - host: yoma.world paths: - path: /auth/realms/yoma