Merge pull request #1 from phrag/harden-tls

Harden TLS
This commit is contained in:
Jordan Bradley 2016-06-16 10:46:35 +02:00 committed by GitHub
commit d244556de7

View file

@ -21,9 +21,13 @@ server {
ssl_session_cache shared:SSL:50m;
ssl_prefer_server_ciphers on;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers ALL:!aNULL:!eNULL:!LOW:!EXP:!RC4:!3DES:+HIGH:+MEDIUM;
ssl_ciphers "EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH";
ssl_ecdh_curve secp384r1;
ssl_stapling on;
ssl_stapling_verify on;
add_header Strict-Transport-Security "max-age=31536000;";
add_header X-Content-Type-Options nosniff;
location / {
return 302 https://$http_host/yunohost/admin;