Automate TLS/SSL by Certbot with auto renewal via Nginx on Ubuntu 16.04 (xenial)
412
Automate TLS/SSL by Certbot with auto renewal via Nginx on Ubuntu 16.04 (xenial)
DOMAIN.CERTBOT_EMAIL.nginx with volumes.
- /etc/nginx/conf.d:/etc/nginx/conf.d
- /etc/ssl/dhparams.pem:/etc/ssl/dhparams.pem
- /var/www:/var/www
nginx default /usr/share/nginx/html page for --webroot.certbot with volumes.
- /etc/letsencrypt:/etc/letsencrypt
- /var/lib/letsencrypt:/var/lib/letsencrypt
- /var/log/letsencrypt:/var/log/letsencrypt
certbot with --webroot challenge with DOMAIN, CERTBOT_EMAIL environment variables.dhparams.pem with dhparams.sh if not volume.SSL by apply https.conf with DOMAIN environment variables.http.conf config.nginx../etc/cron.daily/renew.sh to daily cron job./etc/cron.daily/renew.sh executable./var/log/letsencrypt/daily.log# Config you domain and email.
cp .env.example .env
nano .env
# Compose to remote by docker-machine. (or something else)
Content type
Image
Digest
Size
1.9 MB
Last updated
over 9 years ago
docker pull rabbotio/nginx-certbot