Almost all of the documentation for Keycloak assumes that the system is running in a Docker container. With Docker, there are the PROXY_ADDRESS_FORWARDING and KEYCLOAK_FRONTEND_URLENV variables which make putting Keycloak behind a SSL reverse proxy a breeze.
However, in development (or for those not wishing to use Docker), there is scant documentation regarding how to do the same thing without Docker. I’ve seen several threads on this matter, but none seem to be conclusive. Are there cli arguments that can be passed to standalone.sh? What is the “official” way to configure Keycloak to run behind a reverse proxy when not using Docker? Is there a page in the documentation that I’ve missed?
Then, this is a working nginx config that should work (WARNING: I’m using self-signed certs for development - don’t use snakeoil.conf in production!!!):