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

后端 未结 4 1403
盖世英雄少女心
盖世英雄少女心 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:49

    This sounds somehow like a duplicate of Keycloak Docker behind loadbalancer with https fails

    Set the request headers X-Forwarded-For and X-Forwarded-Proto in nginx. Then you have to configure Keycloak (Wildfly, Undertow) to work together with the SSL terminating reverse proxy (aka load balancer). See http://www.keycloak.org/docs/latest/server_installation/index.html#_setting-up-a-load-balancer-or-proxy for a detailed description.

    The point is that nginx is terminating SSL and is forwarding the requests to Keycloak as pure http. Therefore Keycloak/Wildfly must be told that the incoming http requests from nginx must be handled like they were https.

提交回复
热议问题