Skip to content

Commit

Permalink
Merge pull request #168 from nebari-dev/167-keycloak-realm-redirect
Browse files Browse the repository at this point in the history
Add workaround for user management nav-link
  • Loading branch information
aktech authored Jul 31, 2024
2 parents 6a3cc02 + 4e13b9b commit 4ff7083
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion roles/traefik/templates/traefik_dynamic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,11 @@ http:
stripPrefix:
prefixes:
- "/gateway"

# This is a workaround due to a mismatch between the keycloak realm name and the nebari-jupyterhub-theme
realm-replacepathregex:
replacePathRegex:
regex: "^/auth/admin/nebari/console/"
replacement: "/auth/"
services:
dummy: # never reacher due to middleware http -> https redirect
loadBalancer:
Expand Down Expand Up @@ -93,6 +97,7 @@ http:
service: "minio"
keycloak:
rule: "Host(`{{ traefik_domain | default(hostvars[groups['hpc_master'][0]].ansible_ssh_host) }}`) && PathPrefix(`/auth`)"
middlewares: ["realm-replacepathregex"]
entryPoints:
- "websecure"
service: "keycloak"
Expand Down

0 comments on commit 4ff7083

Please sign in to comment.