Merge pull request #3352 from dokku/3343-ssl-enhancements
Increase security of default SSL setup
This commit is contained in:
1 file changed
+2
-2
@@ -30,7 +30,7 @@ chmod 0440 /etc/sudoers.d/dokku-nginx
|
|||||||
|
|
||||||
# if dhparam.pem has not been created, create it the first time
|
# if dhparam.pem has not been created, create it the first time
|
||||||
if [[ ! -f /etc/nginx/dhparam.pem ]]; then
|
if [[ ! -f /etc/nginx/dhparam.pem ]]; then
|
||||||
openssl dhparam -out /etc/nginx/dhparam.pem 2048
|
openssl dhparam -out /etc/nginx/dhparam.pem 4096
|
||||||
chown root:root /etc/nginx/dhparam.pem
|
chown root:root /etc/nginx/dhparam.pem
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -47,7 +47,7 @@ ssl_session_timeout 1d;
|
|||||||
ssl_session_tickets on;
|
ssl_session_tickets on;
|
||||||
|
|
||||||
ssl_dhparam /etc/nginx/dhparam.pem;
|
ssl_dhparam /etc/nginx/dhparam.pem;
|
||||||
ssl_ciphers ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:RSA+AESGCM:RSA+AES:!aNULL:!MD5:!DSS;
|
ssl_ciphers ECDHE-RSA-AES256-GCM-SHA512:DHE-RSA-AES256-GCM-SHA512:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384;
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user