Reload nginx after getting new LetsEncrypt certificate
This commit is contained in:
parent
7ac0fc9349
commit
18fb999c29
|
@ -67,4 +67,5 @@ for domain in "${domains[@]}"; do
|
|||
mkdir -p "$data_path/www"
|
||||
docker-compose run --rm --entrypoint "certbot certonly --webroot -w /var/www/certbot -d $domain \
|
||||
$staging_arg $email_arg --rsa-key-size $rsa_key_size --agree-tos --force-renewal" certbot
|
||||
docker-compose exec nginx "/bin/sh -c 'nginx -s reload'"
|
||||
done
|
||||
|
|
Loading…
Reference in New Issue