Deployed an instance of openremote to production. Everything going well until I tried to access Keycloak admin console, it did not load. I was stuck at “Loading the Admin UI”.
The solution that worked was was to disabled KC_HOSTNAME_PORT
and enable KC_PROXY_HEADERS
& KC_PROXY
on Keycloak container
#KC_HOSTNAME_PORT=443 <- disabled this
KC_PROXY_HEADERS=xforwarded
KC_PROXY=edge
Additional Notes
- This should likely solve a similar issue Cannot access Keycloak Admin UI
- The openremote referred here is running being Cloudflare proxy