Admin console is not loading from Keycloak behind a proxy. Extra port added to url for step1.html file

I did deployment of Keycloak 19.02 behind nginx proxy. Proxy URL configured with default port. URL to access Keycloak through the proxy is https://100.66.20.234/mk/auth/

Keycloak has https port set to 8443. By KC_HOSTNAME_PORT.

When I am trying to access Admin GUI it is spinning and not loading. All URLS are as expected starting from https://100.66.20.234/mk/auth/… except this one:

https://100.66.20.234:8443/mk/auth/realms/master/protocol/openid-connect/3p-cookies/step1.html

Port 8443 was added. And only for step1.html. Admin GUI is spinning and not loading.

I saw on github it already opened several issues related to loading step1.html. Are we expecting improvement for that in Keycloak 20?

1 Like

Have you solved the problem? I seem to have the same problem when I run kc with “start” mode, but when I run it in “start-dev” mode, everything works fine.

Was able to access admin GUI after setting KC_DB_URL_HOST parameter.