diff --git a/generate-certs.sh b/generate-certs.sh index f3d0da8..69c4f2f 100755 --- a/generate-certs.sh +++ b/generate-certs.sh @@ -10,6 +10,7 @@ live_certs_dir="certs/live/test.com"; #Script will check this directory for empt #-d test.com, -d *.test.com means certificate for: test.com and it's wildcard subdomains. #Only 1 certificate will be generated, regardless of number of subdomains provided here. new_ssl_command="docker run --rm -v ./certs:/etc/letsencrypt -v #cloudflare_token_file#:/certbot-cloudflare certbot/dns-cloudflare certonly #dry_run_arg# --dns-cloudflare --dns-cloudflare-credentials /certbot-cloudflare -d test.com -d \*.test.com --preferred-challenges dns-01 --preferred-chain 'ISRG Root X1' --non-interactive --dns-cloudflare-propagation-seconds 20 --agree-tos --email w3goodies.com@gmail.com"; + renew_command="docker run --rm -v ./certs:/etc/letsencrypt -v #cloudflare_token_file#:/certbot-cloudflare certbot/dns-cloudflare renew #dry_run_arg# --non-interactive --agree-tos --email w3goodies.com@gmail.com --no-random-sleep-on-renew" post_hook="docker-compose restart nginx" #posthook is executed if certificate is created for first time, or if "${live_certs_dir}/cert.pem" file is modified (based on checking last modified time).