Skip to content

Instantly share code, notes, and snippets.

@psytron
Last active January 11, 2021 20:23
Show Gist options
  • Save psytron/9a0ddee534dcd73b0d3cd684e08efc2e to your computer and use it in GitHub Desktop.
Save psytron/9a0ddee534dcd73b0d3cd684e08efc2e to your computer and use it in GitHub Desktop.
ssl.conf
# 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