Keycloak behind Reverse Proxy
Extends the Keycloak docker image to run behind a reverse proxy with SSL offloading.
This image extends the
jboss/keycloak image. Please refer to the README.md for selected images for more info.
How exactly do we have to setup the reverse proxy for this? I expose KC on localhost with -p 127.0.0.1:8080:8080 and then in Apache SSL reverse proxy I have
RequestHeader set X-Forwarded-Proto "https"
RequestHeader set X-Forwarded-Port "443"
ProxyPass / http://127.0.0.1:8080/
ProxyPassReverse / http://127.0.0.1:8080/
KC throws error: Could not find resource for full path: http://my.servername.com/auth/. Tips appreciated.