Skip to content

Commit

Permalink
fix: explicitly set X-Forwarded-Proto to https for no-TLS Keycloak
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlougheed committed Feb 16, 2024
1 parent e8463f6 commit da698f2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions conf/nginx.conf.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ http {
# Reverse proxy settings
include /gateway/conf/proxy.conf;
# Override a line from the above conf - we need Keycloak to be explicitly X-Forwarded-Proto https
proxy_set_header X-Forwarded-Proto https;
# Immediate set/re-use means we don't get resolve errors if not up (as opposed to passing as a literal)
set $upstream_auth http://${BENTOV2_AUTH_CONTAINER_NAME}:${BENTOV2_AUTH_INTERNAL_PORT_PLAIN_HTTP};
proxy_pass $upstream_auth;
Expand Down

0 comments on commit da698f2

Please sign in to comment.