Skip to content

Commit

Permalink
fix: enable reverse proxy configuration for Keycloak
Browse files Browse the repository at this point in the history
  • Loading branch information
neumanf committed Sep 20, 2024
1 parent 8f4d90c commit 869a064
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions infra/nginx/conf/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,7 @@ server {
}

location / {
if ($http_x_forwarded_proto != 'https') {
return 301 https://$server_name$request_uri;
}

proxy_set_header Host $http_host;
proxy_set_header X-Forward-Proto https;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Forwarded $proxy_add_forwarded;

proxy_pass http://keycloak:8080;
}
Expand Down

0 comments on commit 869a064

Please sign in to comment.