From 1c2e835e6e22f460f538fc34c03f31651251f3db Mon Sep 17 00:00:00 2001 From: kem Date: Fri, 6 Sep 2024 10:35:46 +0100 Subject: [PATCH] #157: Modify nginx.conf template to map keycloak account management links to those for specific realm --- provisioning/nginx/nginx.conf.template | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/provisioning/nginx/nginx.conf.template b/provisioning/nginx/nginx.conf.template index 4bd15e04..383bca89 100644 --- a/provisioning/nginx/nginx.conf.template +++ b/provisioning/nginx/nginx.conf.template @@ -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; }