Reverse proxy that allows enabling the HTTPS protocol using the free certificates offered by https://letsencrypt.org/ through its certbot tool.
The easiest way to use this docker image is to set up a docker-compose. To do this, just enter the following environment variables:
- PROXY_DOMAIN : Enter the domain the proxy will respond to.
- PROXY_EMAIL : Email used in the registry of letsencrypt required to get the free certificate.
- PROXY_PASS : Server to which the proxy will pass the requests.
Then, if you want to save the certificates (highly recommended), simply map the volumes:
- /etc/letsencrypt
- /etc/ssl
version: '3'
services:
myproxy:
image: azinformatica/ssl-proxy
ports:
- "80:80"
- "443:443"
environment:
- PROXY_DOMAIN=rapizap.com
- PROXY_EMAIL=myemail@gmail.com
- PROXY_PASS=myapp
volumes:
- "./mybackup/letsencrypt/:/etc/letsencrypt/"
- "./mybackup/ssl/:/etc/ssl/"
networks:
- mynet
myapp:
image: nginx:alpine
networks:
- mynet
networks:
mynet:
Finally, do not forget to release ports 80 and 443.