bundles/nginx: check ssl certificates
All checks were successful
bundlewrap/pipeline/head This commit looks good

This commit is contained in:
Franzi 2020-12-18 13:28:08 +01:00
parent ec62dfdb9a
commit 6045debe9e
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -109,9 +109,9 @@ def monitoring(metadata):
'vars.notification.sms': True, 'vars.notification.sms': True,
} }
if vconfig.get('check_ssl', False): if vconfig.get('check_ssl', metadata.get('nginx/use_ssl_for_all_connections')):
services['NGINX VHOST {} CERTIFICATE'.format(vname)] = { services['NGINX VHOST {} CERTIFICATE'.format(vname)] = {
'check_command': 'check_vhost_https_cert_at_url', 'check_command': 'check_https_cert_at_url',
'vars.domain': domain, 'vars.domain': domain,
'vars.notification.mail': True, 'vars.notification.mail': True,
} }