Skip to content

Commit

Permalink
#157: Modify nginx.conf template to map keycloak account management l…
Browse files Browse the repository at this point in the history
…inks to those for specific realm
  • Loading branch information
kenmeacham committed Sep 6, 2024
1 parent e8c808f commit 1c2e835
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions provisioning/nginx/nginx.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@ http {
proxy_pass http://ssm:$tomcat_port/system-modeller/;
}

location = /auth/account-management/ {
rewrite ^.*$ $scheme://$http_host/auth/realms/$realm_name/account/ redirect;
}
location = /auth/realm-management/ {
rewrite ^.*$ $scheme://$http_host/auth/admin/$realm_name/console/ redirect;
}

location = /auth {
rewrite ^(.*)$ $scheme://$http_host$1/ redirect;
}
Expand Down

0 comments on commit 1c2e835

Please sign in to comment.