yurlls fix monitoring and use dehydrated certs
This commit is contained in:
parent
d3b8e2e414
commit
1d8f20ff25
3 changed files with 21 additions and 20 deletions
|
@ -96,7 +96,7 @@ def monitoring(metadata):
|
||||||
'monitoring': {
|
'monitoring': {
|
||||||
'services': {
|
'services': {
|
||||||
hostname: {
|
hostname: {
|
||||||
'vars.command': f"/usr/bin/curl -X GET -L --fail --no-progress-meter -o /dev/null {quote(hostname + vhost.get('check_path', ''))}",
|
'vars.command': f"/usr/bin/curl -X GET -L --fail --no-progress-meter -o /dev/null {vhost.get('check_protocol', 'https')}://{quote(hostname + vhost.get('check_path', '/'))}",
|
||||||
}
|
}
|
||||||
for hostname, vhost in metadata.get('nginx/vhosts').items()
|
for hostname, vhost in metadata.get('nginx/vhosts').items()
|
||||||
},
|
},
|
||||||
|
|
|
@ -36,6 +36,7 @@ def nginx(metadata):
|
||||||
'context': {
|
'context': {
|
||||||
'php_version': metadata.get('php/version'),
|
'php_version': metadata.get('php/version'),
|
||||||
},
|
},
|
||||||
|
'check_path': '/admin',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -3,8 +3,8 @@ server {
|
||||||
listen [::]:443 ssl http2;
|
listen [::]:443 ssl http2;
|
||||||
server_name ${server_name};
|
server_name ${server_name};
|
||||||
|
|
||||||
ssl_certificate /etc/letsencrypt/archive/${server_name}/fullchain1.pem;
|
ssl_certificate /var/lib/dehydrated/certs/${server_name}/fullchain.pem;
|
||||||
ssl_certificate_key /etc/letsencrypt/archive/${server_name}/privkey1.pem;
|
ssl_certificate_key /var/lib/dehydrated/certs/${server_name}/privkey.pem;
|
||||||
|
|
||||||
root /var/www/yourls/htdocs;
|
root /var/www/yourls/htdocs;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue