spacepaste

  1.  
  2. user http;
  3. #worker_processes auto;
  4. worker_processes 1;
  5. worker_cpu_affinity auto;
  6. events {
  7. }
  8. http
  9. {
  10. server {
  11. listen 80 default_server;
  12. server_name myservant.sytes.net;
  13. rewrite ^ https://$server_name$request_uri? permanent;
  14. }
  15. server {
  16. listen 443 default_server;
  17. server_name myservant.sytes.net;
  18. root /var/www;
  19. ssl on;
  20. ssl_certificate /etc/nginx/ssl/transmission.cert;
  21. ssl_certificate_key /etc/nginx/ssl/transmission.key;
  22. ssl_session_timeout 5m;
  23. ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2;
  24. ssl_ciphers "HIGH:!aNULL:!MD5 or HIGH:!aNULL:!MD5:!3DES";
  25. ssl_prefer_server_ciphers on;
  26. # individual nginx logs for this gitlab vhost
  27. access_log /var/log/nginx/access.log;
  28. error_log /var/log/nginx/error.log;
  29. #location /index {
  30. # autoindex on;
  31. #}
  32. location / {
  33. proxy_read_timeout 300;
  34. proxy_pass_header X-Transmission-Session-Id;
  35. proxy_set_header X-Forwarded-Host $host;
  36. proxy_set_header X-Forwarded-Server $host;
  37. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  38. # if you changed the port number for transmission daemon, then adjust the
  39. # folllowing line
  40. proxy_pass http://127.0.0.1:9091/transmission/web/;
  41. }
  42. # Also Transmission specific
  43. location /rpc {
  44. proxy_pass http://127.0.0.1:9091/transmission/rpc;
  45. }
  46. location /upload {
  47. proxy_pass http://127.0.0.1:9091/transmission/upload;
  48. }
  49. }
  50. }
  51.