SHARE
TWEET

nginx ssl configuration

a guest Dec 20th, 2019 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ssl_session_timeout 60m;
  2. ssl_session_cache shared:SSL:2m;
  3.  
  4. ssl_ciphers 'ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!3DES:!MD5:!PSK';
  5.  
  6. ssl_prefer_server_ciphers on;
  7. ssl_dhparam /etc/nginx/cert/dhparam.pem;
  8. ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  9.  
  10. ssl_stapling on;
  11. ssl_stapling_verify on;
  12.  
  13. ssl_certificate          /opt/dehydrated/certs/example.com/fullchain.pem;
  14. ssl_certificate_key      /opt/dehydrated/certs/example.com/privkey.pem;
  15. ssl_trusted_certificate  /opt/dehydrated/certs/example.com/cert.pem;
  16.  
  17. # add Strict-Transport-Security to prevent man in the middle attacks (HSTS):
  18. add_header Strict-Transport-Security "max-age=31536000" always;
  19. resolver 8.8.8.8 8.8.4.4;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top