Last active
August 29, 2015 14:11
-
-
Save claar/f08ec4c5f4d00ee0c85f to your computer and use it in GitHub Desktop.
nginx config - FIPS complient, SSL stapling, POODLE mitigation, session caching
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
| ## | |
| # Global SSL settings - nginx.conf in http section | |
| ## | |
| # Fix POODLE | |
| ssl_protocols TLSv1 TLSv1.1 TLSv1.2; | |
| # Session resuming / abbreviated handshake for 100ms performance improvement | |
| # Enable SSL session caching for improved performance | |
| # http://nginx.org/en/docs/http/ngx_http_ssl_module.html#ssl_session_cache | |
| ssl_session_cache shared:ssl_session_cache:10m; | |
| # These ciphers are a subset of FIPS-complient ciphers | |
| ssl_ciphers ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA:AES256-SHA:AES128-SHA; | |
| ssl_prefer_server_ciphers on; | |
| # Enable SSL OCSP stapling -- improves performance and helps CAs | |
| # http://en.wikipedia.org/wiki/OCSP_stapling | |
| ssl_stapling on; | |
| ssl_stapling_verify on; | |
| # Enable HSTS -- tell browser this domain and its subdomains should only be accessed via HTTPS for the next 365 days | |
| add_header Strict-Transport-Security "max-age=31536000; includeSubdomains"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment