Skip to content
This repository was archived by the owner on Oct 7, 2025. It is now read-only.

Commit a42e6b4

Browse files
committed
Correctly Redirect to Keycloak on Missing Trailing Slash
1 parent ef6d46c commit a42e6b4

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

feasibility-portal/proxy/context-paths.nginx.conf

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ http {
7878
add_header X-Content-Type-Options nosniff;
7979
add_header X-Frame-Options SAMEORIGIN;
8080

81+
port_in_redirect off;
82+
8183
# redirect server error pages to the static page /50x.html
8284
#
8385
error_page 500 502 503 504 /50x.html;
@@ -99,7 +101,9 @@ http {
99101
client_max_body_size 100M;
100102
}
101103

102-
location /auth {
104+
rewrite ^/auth$ /auth/ permanent;
105+
106+
location /auth/ {
103107
set $auth_upstream http://auth:8080;
104108
proxy_pass $auth_upstream;
105109
}

0 commit comments

Comments
 (0)