Nginx Reverse Proxy over SSL/HTTPS for KeyCloak

Configurations for Keycloak to run over HTTPS through Nginx Proxy.

Audience:

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

etc/hosts file: ← Note “keycloak”.

127.0.0.1 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 auth.abcd.com
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

--

--