Compare commits

..

1 Commits

Author SHA1 Message Date
Giles Bradshaw 63864eb749 chore(deps): add renovate.json 2020-08-27 14:37:40 +00:00
3 changed files with 6 additions and 3 deletions

3
renovate.json Normal file
View File

@ -0,0 +1,3 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json"
}

View File

@ -1,7 +1,7 @@
server {
# Listen on plain old HTTP
listen 80 default_server reuseport;
#listen [::]:80 default_server reuseport;
listen [::]:80 default_server reuseport;
# Pass this particular URL off to certbot, to authenticate HTTPS certificates
location '/.well-known/acme-challenge' {

View File

@ -15,14 +15,14 @@ error() {
# /etc/letsencrypt/live/<primary_domain_name>/privkey.pem
parse_domains() {
# For each configuration file in /etc/nginx/conf.d/*.conf*
for conf_file in /etc/nginx/conf.d/certificates/*.conf*; do
for conf_file in /etc/nginx/conf.d/*.conf*; do
sed -n -r -e 's&^\s*ssl_certificate_key\s*\/etc/letsencrypt/live/(.*)/privkey.pem;\s*(#.*)?$&\1&p' $conf_file | xargs echo
done
}
# Given a config file path, spit out all the ssl_certificate_key file paths
parse_keyfiles() {
sed -n -e 's&^\s*# ssl_certificate_key\s*\(.*\);&\1&p' "$1"
sed -n -e 's&^\s*ssl_certificate_key\s*\(.*\);&\1&p' "$1"
}
# Given a config file path, return 0 if all keyfiles exist (or there are no