From d884b2536fd45e341ec7f30663b6cce2960cbeb4 Mon Sep 17 00:00:00 2001 From: Finn Date: Fri, 16 Aug 2024 11:54:32 -0700 Subject: [PATCH] Keycloak: redirect / to /realms/janky.solutions/account --- k8s/keycloak/ingress.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/k8s/keycloak/ingress.yaml b/k8s/keycloak/ingress.yaml index 78bad5e..d6df643 100644 --- a/k8s/keycloak/ingress.yaml +++ b/k8s/keycloak/ingress.yaml @@ -11,6 +11,8 @@ apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: keycloak + annotations: + traefik.ingress.kubernetes.io/router.middlewares: keycloak-keycloak-root-redirect@kubernetescrd spec: rules: - host: auth.janky.solutions @@ -42,3 +44,12 @@ spec: clusterIP: None selector: app: keycloak +--- +apiVersion: traefik.io/v1alpha1 +kind: Middleware +metadata: + name: keycloak-root-redirect +spec: + redirectRegex: + regex: ^https://auth.janky.solutions/$ + replacement: https://auth.janky.solutions/realms/janky.solutions/account