Guest User

Untitled

a guest
Jan 20th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. server {
  2. # Update this line to be your domain
  3. server_name www.hostname.org;
  4.  
  5. # Ensure these lines point to your SSL certificate and key
  6. # ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem;
  7. # ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem;
  8. # Use these lines instead if you created a self-signed certificate
  9. ssl_certificate /etc/nginx/ssl/www_hostname_org_ee.crt;
  10. ssl_certificate_key /etc/nginx/ssl/hostname.key;
  11.  
  12. # Ensure this line points to your dhparams file
  13. ssl_dhparam /etc/nginx/ssl/dhparam.pem;
  14.  
  15.  
  16. # These shouldn't need to be changed
  17. listen [::]:32776 default_server ipv6only=off; # if your nginx version is >= 1.9.5 you can also add the "http2" flag here
  18. add_header Strict-Transport-Security "max-age=31536000; includeSubdomains";
  19. ssl on;
  20. ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  21. ssl_ciphers "EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH:!aNULL:!eNULL:!EXPORT:!DES:!MD5:!PSK:!RC4";
  22. ssl_prefer_server_ciphers on;
  23. ssl_session_cache shared:SSL:10m;
  24.  
  25. proxy_buffering off;
  26.  
  27. location / {
  28. proxy_pass http://10.0.0.8:8123;
  29. proxy_set_header Host $host;
  30. proxy_redirect http:// https://;
  31. proxy_http_version 1.1;
  32. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  33. proxy_set_header Upgrade $http_upgrade;
  34. proxy_set_header Connection $connection_upgrade;
  35. }
  36. }
  37. }
Add Comment
Please, Sign In to add comment