Repository navigation
Keycloak behind NGINX proxy #19477
Unanswered
fraschizzato
asked this question in
Q&A
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.
Hi,
we have an enterprise proxy (nginx) that redirect the traffic to the correct machine and manage https.
Behind that we have a keycloak machine (installation standalone without container) with its own nginx instance, all the traffic behind the proxy is http.
Locally (http) everything works fine but when accesing from outside our network I have a strange problem,
when I call the domain the traffic is correctly redirected in https and I can see the login window
example url
https://example.domain.com/keycloak/realms/realmName/protocol/openid-connect/auth?client_id= ....but when I press the login button the request is made in http:
example url showed in the browser:
http://example.domain.com/keycloak/realms/realmName/login-actions/authenticate?session_code=...If i go through the chrome warning the login is succesfull and the resource behind keycloak is loaded in https...
what I have to change to make the second request in https?
Ideally I would like to access both in http and https depending on the request protocol
Thanks
All reactions