Created
June 10, 2017 05:07
-
-
Save ziazek/ae2cb56fe63f8727dbaa55cddbc9780e to your computer and use it in GitHub Desktop.
/etc/nginx/snippets/ssl-params.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# from https://cipherli.st/ | |
ssl_protocols TLSv1.2; | |
ssl_prefer_server_ciphers on; | |
ssl_ciphers "EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH"; | |
ssl_ecdh_curve secp384r1; | |
ssl_session_cache shared:SSL:10m; | |
ssl_session_tickets off; | |
ssl_stapling on; | |
ssl_stapling_verify on; | |
# use Google DNS | |
resolver 8.8.8.8 8.8.4.4 valid=300s; | |
resolver_timeout 5s; | |
# HSTS header: BE CAREFUL! | |
# Uncommenting this setting means that your site needs to support HTTPS in the future (including subdomains), | |
# otherwise users who have previously been to your site won't be able to access. | |
# add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload"; | |
add_header X-Frame-Options DENY; | |
add_header X-Content-Type-Options nosniff; | |
ssl_dhparam /etc/letsencrypt/dhparam.pem; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment