Using Keycloak behind a reverse proxy: Could not open Admin loginpage because mixed Content

后端 未结 4 1393
盖世英雄少女心
盖世英雄少女心 2020-12-28 15:11

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

4条回答
  •  离开以前
    2020-12-28 15:45

    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.

提交回复
热议问题