- user http;
- #worker_processes auto;
- worker_processes 1;
- worker_cpu_affinity auto;
- events {
- }
- http
- {
- server {
- listen 80 default_server;
- server_name myservant.sytes.net;
- rewrite ^ https://$server_name$request_uri? permanent;
- }
- server {
- listen 443 default_server;
- server_name myservant.sytes.net;
- root /var/www;
- ssl on;
- ssl_certificate /etc/nginx/ssl/transmission.cert;
- ssl_certificate_key /etc/nginx/ssl/transmission.key;
- ssl_session_timeout 5m;
- ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2;
- ssl_ciphers "HIGH:!aNULL:!MD5 or HIGH:!aNULL:!MD5:!3DES";
- ssl_prefer_server_ciphers on;
- # individual nginx logs for this gitlab vhost
- access_log /var/log/nginx/access.log;
- error_log /var/log/nginx/error.log;
- #location /index {
- # autoindex on;
- #}
- location / {
- proxy_read_timeout 300;
- proxy_pass_header X-Transmission-Session-Id;
- proxy_set_header X-Forwarded-Host $host;
- proxy_set_header X-Forwarded-Server $host;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- # if you changed the port number for transmission daemon, then adjust the
- # folllowing line
- proxy_pass http://127.0.0.1:9091/transmission/web/;
- }
- # Also Transmission specific
- location /rpc {
- proxy_pass http://127.0.0.1:9091/transmission/rpc;
- }
- location /upload {
- proxy_pass http://127.0.0.1:9091/transmission/upload;
- }
- }
- }