bundles/nginx: make sure we have dhparam.pem
This commit is contained in:
parent
9cc5c07466
commit
113221a9b2
1 changed files with 8 additions and 0 deletions
|
@ -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 = {
|
||||
'nginx': {
|
||||
'needs': {
|
||||
'action:nginx-generate-dhparam',
|
||||
'pkg_apt:nginx',
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue