Last active
January 7, 2018 16:54
-
-
Save quantenschaum/c7cb2fda5d9c281d9b13051364fa7a16 to your computer and use it in GitHub Desktop.
nginx ssl config
This file contains hidden or 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
# this is based on information from | |
# https://cipherli.st | |
# https://mozilla.github.io/server-side-tls/ssl-config-generator/ | |
# https://raymii.org/s/tutorials/Strong_SSL_Security_On_nginx.html | |
# https://scotthelme.co.uk/a-plus-rating-qualys-ssl-test/ | |
# test it with https://www.ssllabs.com/ssltest/ | |
#listen 443 ssl http2; | |
#listen [::]:443 ssl http2; | |
ssl on; | |
ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem; | |
ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem; | |
# cd /etc/ssl && openssl dhparam -out dhparam.pem 4096 | |
ssl_dhparam /etc/ssl/dhparam.pem; | |
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; | |
ssl_ciphers "EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH"; | |
ssl_prefer_server_ciphers on; | |
keepalive_timeout 70; | |
ssl_session_timeout 10m; | |
ssl_session_cache shared:SSL:10m; | |
ssl_session_tickets off; | |
ssl_stapling on; | |
ssl_stapling_verify on; | |
add_header Strict-Transport-Security "max-age=15768000"; | |
gzip off; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment