Advertisement
venomphil

Untitled

Feb 1st, 2017
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.55 KB | None | 0 0
  1. server {
  2. listen 443 ssl http2;
  3. listen [::]:443 ssl http2;
  4. server_name hoy.co.uk www.hoy.co.uk;
  5.  
  6. ssl on;
  7.  
  8. # lets encrypt certificates
  9. ssl_certificate /etc/letsencrypt/live/hoy.co.uk/fullchain.pem;
  10. ssl_certificate_key /etc/letsencrypt/live/hoy.co.uk/privkey.pem;
  11.  
  12. #SSL Optimization
  13. ssl_session_timeout 1d;
  14. ssl_session_cache shared:SSL:20m;
  15. ssl_session_tickets off;
  16.  
  17. # modern configuration
  18. ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  19. ssl_prefer_server_ciphers on;
  20.  
  21. ssl_ciphers 'ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AE$
  22.  
  23. # OCSP stapling
  24. ssl_stapling on;
  25. ssl_stapling_verify on;
  26.  
  27. # verify chain of trust of OCSP response
  28. ssl_trusted_certificate /etc/letsencrypt/live/hoy.co.uk/chain.pem;
  29. #root directory and logfiles
  30. root /srv/users/serverpilot/apps/hoy/public;
  31.  
  32. access_log /srv/users/serverpilot/log/hoy/hoy_nginx.access.log main;
  33. error_log /srv/users/serverpilot/log/hoy/hoy_nginx.error.log;
  34.  
  35. #proxyset
  36. proxy_set_header Host $host;
  37. proxy_set_header X-Real-IP $remote_addr;
  38. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  39. proxy_set_header X-Forwarded-SSL on;
  40. proxy_set_header X-Forwarded-Proto $scheme;
  41.  
  42. #includes
  43. include /etc/nginx.sp/vhosts.d/hoy.d/*.nonssl_conf;
  44. include /etc/nginx.sp/vhosts.d/hoy.d/*.conf;
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement