Advertisement
Guest User

Untitled

a guest
Jan 12th, 2018
378
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. # This file contains important security parameters. If you modify this file
  2. # manually, Certbot will be unable to automatically provide future security
  3. # updates. Instead, Certbot will print and log an error message with a path to
  4. # the up-to-date file that you will need to refer to when manually updating
  5. # this file.
  6.  
  7. ssl_session_cache shared:le_nginx_SSL:1m;
  8. ssl_session_timeout 1440m;
  9.  
  10. ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  11. ssl_prefer_server_ciphers on;
  12.  
  13. ssl_ciphers "ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:!DSS";
  14.  
  15. # manually added
  16. ssl_ecdh_curve secp384r1;
  17. ssl_session_tickets off;
  18. ssl_stapling on;
  19. ssl_stapling_verify on;
  20. resolver 8.8.8.8 8.8.4.4 valid=300s;
  21. resolver_timeout 5s;
  22. add_header Strict-Transport-Security "max-age=63072000; includeSubdomains; preload";
  23. add_header X-Frame-Options SAMEORIGIN;
  24. add_header X-Content-Type-Options nosniff;
  25.  
  26. ssl_dhparam /etc/ssl/certs/dhparam.pem; # uses our Diffie-Hellman group
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement