Nginx Reverse Proxy over SSL/HTTPS for KeyCloak

Configurations for Keycloak to run over HTTPS through Nginx Proxy.



This is useful for those who have a minimum understanding of Keycloak and Nginx.

etc/hosts file: ← Note “keycloak”. registry jhipster-registry jhipster-elasticsearch keycloak

Install Cert & Renew Automatically: ← Your custom SSL certificate for Https.

sudo add-apt-repository ppa:certbot/certbot
sudo apt install python3-certbot-nginx
sudo certbot --nginx -d
certbot renew --pre-hook "docker-compose -f /root/_dev-remote-db/docker-compose.yml down" --post-hook "docker-compose -f /root/_dev-remote-db/docker-compose.yml up -d --build"

nginx conf:

docker-compose: for JHipster Services + Keycloak and Nginx.

Find my other articles @ my publication: ThinkSpecial



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store