Created
June 13, 2015 14:39
-
-
Save binarybucks/e6c7d42ecbeecbcc1a25 to your computer and use it in GitHub Desktop.
Nginx TLS vHost config
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
server { | |
listen 443 default_server ssl; | |
server_name CHANGEME | |
server_tokens off; | |
ssl_certificate CHANGEME.crt; | |
ssl_certificate_key CHANGEME.key; | |
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; | |
ssl_prefer_server_ciphers on; | |
ssl_session_cache shared:ssl_session_cache:10m; | |
# TLS Perfect Forward Secrecy | |
ssl_ciphers "EECDH+ECDSA+AESGCM EECDH+aRSA+AESGCM EECDH+ECDSA+SHA384 EECDH+ECDSA+SHA256 EECDH+aRSA+SHA384 EECDH+aRSA+SHA256 EECDH+aRSA+RC4 EECDH EDH+aRSA RC4 !aNULL !eNULL !LOW !3DES !MD5 !EXP !PSK !SRP !DSS !MEDIUM"; | |
ssl_dhparam dh4096.pem; | |
# HTTP Strict Transport Security | |
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains"; | |
add_header X-Frame-Options SAMEORIGIN; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment