This is a Docker image based on the official nginx image. This image is automated to fetch a free SSL certificate (Let's Encrypt / Certbot) for the given domain(s) and to work as a proxy for the given urls.
docker run -p 443:443 -p 80:80 --env DOMAIN=example.com --env PROXY=https://www.google.com --env [email protected] tcmug/nginxhttpsproxy
docker run -p 443:443 -p 80:80 --env DOMAIN="example.com inbox.example.com" --env PROXY="https://www.google.com https://inbox.google.com" --env [email protected] tcmug/nginxhttpsproxy
docker run -p 443:443 -p 80:80 --env DOMAIN="example.com inbox.example.com" --env PROXY="https://www.google.com https://inbox.google.com" --env MODE=test --env [email protected] tcmug/nginxhttpsproxy
docker run -p 443:443 -p 80:80 --env DOMAIN="example.com inbox.example.com" --env PROXY="https://www.google.com https://inbox.google.com" -v /home/username/certs:/etc/letsencrypt --env [email protected] tcmug/nginxhttpsproxy
Certbot email address for important account notifications.
Set to test for testing. This makes certbot issue a self signed certificate.
ENV MODE=test
The domain or domains you own and which is configured to the IP of the machine you're running docker on.
ENV DOMAIN=example.com google.example.com
The host or hosts you wish to proxy, URL. Define one for each DOMAIN (1:1).
ENV PROXY=http://11.22.33.44 https://www.google.com