Port went missing when accessing admin console. #11639
ajaxjiang96
started this conversation in
Archive
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Recently I've upgraded keycloak from
17.0.0-legacyto18.0.0. Our server is reverse-proxied byCaddy, and all our services are hosted on the non-standard https port8443extenally, whereas keycloak is hosted in the internal network at port8080. When I'm trying to access the admin console from the welcome page, the link gives me a url without the port8443, which ishttps://my.url.com/admin.If I try to access the admin console with direct url, I get security error hosting the iframe since my page is hosted on port
8443while the iframe url drops the port. When I looked into the html file returned from the console endpoint, I see something like this.I tried to walkthrough the Keycloak source code to find out where does this
authUrlcome from, but I got some difficulties since I haven't touched Java for years. I've also visited a lot of Github issues and forum posts closed to this issue but it didn't work out. It would be great if someone could offer some advice on resolving this issue. Thanks in advance!For the record, here is the block for keycloak in the
Caddyfile:Heres the document mentioning the default behaviour of Caddy adding headers for reverse proxies: Link.
And here is the environment variables I used in
docker-compose.ymlBeta Was this translation helpful? Give feedback.
All reactions