Created
October 6, 2022 04:37
-
-
Save palawer/9cadcb351e2147d23b4324ee2433c4a8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 certonly --webroot -w /var/www/certbot --force-renewal --email [email protected] -d domain.com --agree-tos |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment