Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2014
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.89 KB | None | 0 0
  1. server {
  2. listen 80;
  3. ## Redirect to https ##
  4. return 301 https://$host$request_uri;
  5. }
  6.  
  7. server {
  8. listen 443 ssl;
  9. ssl on;
  10.  
  11. auth_basic "Auth";
  12. auth_basic_user_file /etc/nginx/.htpasswd;
  13.  
  14. ## SSL logging ##
  15. access_log /var/log/nginx/ssl-access.log;
  16. error_log /var/log/nginx/ssl-error.log;
  17.  
  18. ## SSL certificates ###
  19. ssl_certificate ssl/server.crt;
  20. ssl_certificate_key ssl/server.key;
  21.  
  22. ### SSL specific settings, removed SSLv3 ###
  23. ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  24. ssl_ciphers RC4:HIGH:!aNULL:!MD5;
  25. ssl_prefer_server_ciphers on;
  26. keepalive_timeout 60;
  27. ssl_session_cache shared:SSL:10m;
  28. ssl_session_timeout 10m;
  29.  
  30. root /usr/share/nginx/www;
  31. index index.html;
  32.  
  33. ### force timeouts if backend has died ###
  34. proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504;
  35.  
  36. ### Set headers ####
  37. proxy_headers_hash_max_size 51200;
  38. proxy_headers_hash_bucket_size 6400;
  39. proxy_set_header Accept-Encoding "";
  40. proxy_set_header Host $host;
  41. proxy_set_header X-Real-IP $remote_addr;
  42. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  43. proxy_set_header X-Forwarded-Proto $scheme;
  44. add_header Front-End-Https on;
  45.  
  46. location / {
  47. ### look up what this does ###
  48. proxy_redirect off;
  49. }
  50. location /nzbdrone {
  51. proxy_pass http://10.0.1.2:8989;
  52. }
  53. location /sabnzbd {
  54. proxy_pass http://10.0.1.2:8080;
  55. }
  56. location /couchpotato {
  57. proxy_pass http://10.0.1.2:5050;
  58. }
  59. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement