Give Nginx a moment to respond.
This commit is contained in:
parent
704d875595
commit
95384b26b8
2 changed files with 7 additions and 4 deletions
8
.github/workflows/php-flavours.yml
vendored
8
.github/workflows/php-flavours.yml
vendored
|
|
@ -3,10 +3,10 @@ name: Build PHP Flavours
|
|||
on:
|
||||
push:
|
||||
paths:
|
||||
- php/php+apache/*
|
||||
- php/php+cli/*
|
||||
- php/php+nginx/*
|
||||
- php/Dockerfile.Flavours
|
||||
- 'php/php+apache/**'
|
||||
- 'php/php+cli/**'
|
||||
- 'php/php+nginx/**'
|
||||
- 'php/Dockerfile.Flavours'
|
||||
workflow_run:
|
||||
workflows:
|
||||
- Build PHP Core
|
||||
|
|
|
|||
|
|
@ -35,8 +35,11 @@ certbot \
|
|||
--agree-tos \
|
||||
-d $LETSENCRYPT_DOMAINS
|
||||
echo "Certbot complete!"
|
||||
|
||||
# replace the self-certs with these lovely new certs.
|
||||
sed -i "s|ssl_certificate .*|ssl_certificate /etc/letsencrypt/live/${LETSENCRYPT_DOMAINS}/fullchain.pem;|g" /etc/nginx/sites-enabled/default-ssl
|
||||
sed -i "s|ssl_certificate_key .*|ssl_certificate_key /etc/letsencrypt/live/${LETSENCRYPT_DOMAINS}/privkey.pem;|g" /etc/nginx/sites-enabled/default-ssl
|
||||
|
||||
echo "Reloading Nginx"
|
||||
nginx -s reload
|
||||
# Sleep for 24 hours and try again tomorrow with a renewal, just in case.
|
||||
|
|
|
|||
Loading…
Reference in a new issue