mirror of
https://github.com/bashclub/zamba-lxc-toolbox.git
synced 2024-12-24 19:30:11 +01:00
Change dhparam gen to monthly
This commit is contained in:
parent
5802c2c043
commit
a8a5cda289
@ -10,11 +10,11 @@ random_password() {
|
|||||||
|
|
||||||
generate_dhparam() {
|
generate_dhparam() {
|
||||||
openssl dhparam -out /etc/nginx/dhparam.pem 2048
|
openssl dhparam -out /etc/nginx/dhparam.pem 2048
|
||||||
cat << EOF > /etc/cron.weekly/generate-dhparams
|
cat << EOF > /etc/cron.monthly/generate-dhparams
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
openssl dhparam -out /etc/nginx/dhparam.gen 4096 > /dev/null 2>&1
|
openssl dhparam -out /etc/nginx/dhparam.gen 4096 > /dev/null 2>&1
|
||||||
mv /etc/nginx/dhparam.gen /etc/nginx/dhparam.pem
|
mv /etc/nginx/dhparam.gen /etc/nginx/dhparam.pem
|
||||||
systemctl restart nginx
|
systemctl restart nginx
|
||||||
EOF
|
EOF
|
||||||
chmod +x /etc/cron.weekly/generate-dhparams
|
chmod +x /etc/cron.monthly/generate-dhparams
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user