Repository navigation
how to use the same instance of keycload with AND without proxy protocol (on different port)? #37156
Replies: 2 comments 5 replies
|
To clarify you are running with TLS enabled and have a passthrough proxy correct? When you say you can't connect directly with proxy-protocol-enabled=true - what response and/or server error log are you actually seeing? And when proxy-protocol-enabled=false, are there any corresponding error in the server log? proxy-protocol-enabled should be optional. |
To clarify passthrough TLS is the only scenario you would use proxy-protocol-enabled - otherwise the proxy is able to manipulate the headers to set the client address.
This just seems to be a curl issue: https://stackoverflow.com/questions/46948866/verify-if-nginx-is-working-correctly-with-proxy-protocol-locally |
Uh oh!
There was an error while loading. Please reload this page.
If I run keycloak like this, my connections via haproxy are ok, but I can't connect directly via a local connection.
bin/kc.sh start --hostname-strict false --proxy-protocol-enabled trueIf I run keycloak like this, my connections via haproxy are getting the error "503 Service Unavailable", but I now the local connection is fine
bin/kc.sh start --hostname-strict falseIs it possible to run the proxy protocol and not on the same ip? Maybe different port?
All reactions