Last active
January 11, 2021 20:23
-
-
Save psytron/9a0ddee534dcd73b0d3cd684e08efc2e to your computer and use it in GitHub Desktop.
ssl.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
# add this to nginx.conf by using: | |
# include /etc/nginx/snippets/ssl.conf; | |
ssl_session_timeout 1d; | |
ssl_session_cache shared:SSL:50m; | |
ssl_session_tickets off; | |
ssl_protocols TLSv1.2; | |
ssl_ciphers EECDH+AESGCM:EECDH+AES; | |
ssl_ecdh_curve secp384r1; | |
ssl_prefer_server_ciphers on; | |
ssl_stapling on; | |
ssl_stapling_verify on; | |
add_header Strict-Transport-Security "max-age=15768000; includeSubdomains; preload"; | |
#add_header X-Frame-Options DENY; | |
#add_header X-Frame-Options SAMEORIGIN; | |
add_header 'Access-Control-Allow-Origin' '*'; | |
add_header X-Content-Type-Options nosniff; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment