Created
October 6, 2022 04:38
-
-
Save palawer/b91251289e9086c4503e153013412795 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Reference | |
# https://www.programonaut.com/setup-ssl-with-docker-nginx-and-lets-encrypt/ | |
# --dry-run to simulate renewal | |
docker run -it --rm --name certbot \ | |
-v "/etc/letsencrypt:/etc/letsencrypt" \ | |
-v "/var/lib/letsencrypt:/var/lib/letsencrypt" \ | |
-v "/var/log/letsencrypt:/var/log/letsencrypt" \ | |
-v "/var/www/certbot:/var/www/certbot" \ | |
certbot/certbot renew --webroot -w /var/www/certbot --force-renewal --agree-tos |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment