Advertisement
Guest User

Untitled

a guest
Jun 19th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. server {
  2.  
  3. listen 443 ssl;
  4.  
  5. ssl_certificate /etc/letsencrypt/live/codius1.seasonedlogic.com/fullchain.pem;
  6.  
  7. ssl_certificate_key /etc/letsencrypt/live/codius1.seasonedlogic.com/privkey.pem;
  8.  
  9. ssl_protocols TLSv1.2;
  10.  
  11. ssl_prefer_server_ciphers on;
  12.  
  13. ssl_dhparam /etc/nginx/dhparam.pem;
  14.  
  15. ssl_ciphers ECDHE-RSA-AES256-GCM-SHA512:DHE-RSA-AES256-GCM-SHA512:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384;
  16.  
  17. ssl_ecdh_curve secp384r1;
  18.  
  19. ssl_session_timeout 10m;
  20.  
  21. ssl_session_cache shared:SSL:10m;
  22.  
  23. ssl_session_tickets off;
  24.  
  25. ssl_stapling on;
  26.  
  27. ssl_stapling_verify on;
  28.  
  29. resolver 1.1.1.1 1.0.0.1 valid=300s;
  30.  
  31. resolver_timeout 5s;
  32.  
  33. add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload";
  34.  
  35. add_header X-Frame-Options DENY;
  36.  
  37. add_header X-Content-Type-Options nosniff;
  38.  
  39. add_header X-XSS-Protection "1; mode=block";
  40.  
  41. location / {
  42.  
  43. proxy_pass http://127.0.0.1:3000;
  44.  
  45. proxy_set_header Host $host;
  46.  
  47. proxy_set_header X-Forwarded-For $remote_addr;
  48.  
  49. }
  50.  
  51. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement