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

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

    I have the same problem with you, now it fixed, This is my method.

    First, I setup reverse proxy with cloak at a clean env, confirm that the proxy and cloak was configured rightly.

    Next, with test and gusess, I found when setup keycloak use the image you pull from dockerhub whith docker. There is some difference set it up with binary on server, from the standalone.xml, you will find the key point is this 2:

    1. You should set PROXY_ADDRESS_FORWARDING=true for docker env.

    2. You should set jboss.https.port 443 for docker env.

    If your standalone.xml also configured rightly, you will get it work for admin page. Good lucks ;)

提交回复
热议问题