Last active
January 28, 2019 04:31
-
-
Save misterorion/93e0cc775148c72a6108b767822db4be to your computer and use it in GitHub Desktop.
certbot script for dockerized wordpress
add --dry-run for testing
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 | |
docker run -it --rm \ | |
-v certs:/etc/letsencrypt \ | |
-v certs-data:/data/letsencrypt \ | |
-v /var/log/letsencrypt:/var/log/letsencrypt \ | |
certbot/certbot certonly \ | |
--webroot --register-unsafely-without-email --agree-tos \ | |
--webroot-path=/data/letsencrypt \ | |
-d origin.domain.com -d www.domain.com |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment