News for hackers. Stuff that matters.
Re:Keycloak SSO with Docker Compose and Nginx by trollied on Sunday February 11, 2024 @06:58AM (#39334423)
Love keycloak. What I would do differently though is run it on a host (or in a k8s pod) & have it serving via http to localhost, then use cloudflared to tunnel & present it as https. Saves messing around with certificates etc, it's all automatic.
Re:Keycloak SSO with Docker Compose and Nginx by J_tt on Sunday February 11, 2024 @07:26AM (#39334564)
My go to is always this instead:

https://github.com/lucaslorentz/caddy-docker-proxy

Single label to a docker container and with correct DNS you’ll have an automatically managed certificate right away.

Re:Keycloak SSO with Docker Compose and Nginx by Helmut10001 on Sunday February 11, 2024 @07:46AM (#39334631)
I had this discussion before and thought long about using Caddy, but then decided for nginx, directly on the host, basically following this reasoning [1].

My main motivation is that there is just more information available for nginx due to its wider use. And when you need to customize Caddy due to different requirements by services, you end up with the same or worse complexity compared to an nginx .conf. Nginx is just very robust and the configuration is not so hard to get used to.

[1]: https://nickjanetakis.com/blog/why-i-prefer-running-nginx-on...

Re:Keycloak SSO with Docker Compose and Nginx by J_tt on Sunday February 11, 2024 @08:10AM (#39334747)
Very reasonable!

My go-to for anything more complicated is definitely NGINX, but for ease of use in a very straightforward docker containers running HTTP services, it’s hard to beat the ease of use of the modified version of Caddy I linked