bundles/nginx: make sure we have dhparam.pem

This commit is contained in:
Franzi 2020-10-31 10:18:40 +01:00
parent 9cc5c07466
commit 113221a9b2
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -22,9 +22,17 @@ files = {
}, },
} }
actions = {
'nginx-generate-dhparam': {
'command': 'openssl dhparam -out /etc/ssl/certs/dhparam.pem 2048',
'unless': 'test -f /etc/ssl/certs/dhparam.pem',
},
}
svc_systemd = { svc_systemd = {
'nginx': { 'nginx': {
'needs': { 'needs': {
'action:nginx-generate-dhparam',
'pkg_apt:nginx', 'pkg_apt:nginx',
}, },
}, },