Repository navigation
Keycloak does not start in azure app service when using custom domain as KC_HOST #42020
Unanswered
SenneVerhaegen
asked this question in
Q&A
Replies: 1 comment 3 replies
There is nothing that I know of nor shown here related to the hostname setting that would prevent the server from starting.
That does seem to be a bug / enhancement. cc @pruivo @ryanemerson when the cache is set to local jdbc ping discovery still seems to be used. Note that local mode is really only for dev / testing scenarios.
Is the database down or not ready? |
3 replies
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.
Hi all,
In short I'm trying to have a nice and trusted URL for my end users. However, when I provide my custom domain as KC_HOST, keycloak fails to start. I will describe my setup below.
When I set KC_HOST as the default azure generated one (e.g. app-keycloak-test.azurewebsites.net), everything works fine. I can navigate to keycloak.test.mycustomdomain.com, however the URL in the browsers gets changed back to app-keycloak-test.azurewebsites.net
I would like that it still shows my custom domain.
When I set KC_HOST as "https://keycloak.test.mycustomdomain.com", the keycloak container fails to start.
It seems like it's still trying to use ispn instead of local cache, even though I specified that in the start script. But actually it should still work with ispn, because I have verified that everything works when using the default azure host names.
My docker image looks like this:
Logs:
All reactions