Add hook which reloads nginx config on cert change
This commit is contained in:
parent
b379a977cb
commit
0f17f6491e
1 changed files with 2 additions and 0 deletions
|
|
@ -1,7 +1,9 @@
|
|||
#!/bin/bash
|
||||
# For the --post-hook argument see: https://stackoverflow.com/questions/70002636/https-certbot-certificate-is-renewed-but-connection-not-secure-till-you-restart
|
||||
/snap/bin/certbot certonly \
|
||||
--dns-cloudflare \
|
||||
--dns-cloudflare-propagation-seconds 120 \
|
||||
--dns-cloudflare-credentials '{{ cloudflare_credential_dir_path }}/{{ cloudflare_credential_filename }}' \
|
||||
--post-hook "nginx -s reload" \
|
||||
--agree-tos -m {{ administration_email }} \
|
||||
-d $1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue