so I have a problem getting keycloak 3.2.1 to work behind kong (0.10.3), a reverse proxy based on nginx.
Scenario is:
I call keycloak via my gateway-route v
Add the X-Forwarded-For
and X-Forwarded-Proto
headers (as Boomer said) in all upstream load balancers and make sure those reach Keycloak server.
X-Forwarded-For
should be the domain of your Keycloak which routes to the LB and X-Forwarded-Proto
should be the protocol (most of the cases https).
As a final step you need to modify standalone.xml
or standalone-ha.xml
file and add the proxy-address-forwarding="true"
attribute to
element under
.
If you are using Docker you can use PROXY_ADDRESS_FORWARDING
environment var from the original Keycloak container to set this attribute.