reverse-proxy-confs/transmission.subfolder.conf.sample
daan1024 c99abe3b1d
Added proxy_pass_header X-Transmission-Session-Id;
proxy_pass_header  X-Transmission-Session-Id; is a fix for the 409: Conflict error
2019-03-19 15:12:51 +01:00

24 lines
795 B
Text

# transmission does not require a base url setting
location ^~ /transmission {
# enable the next two lines for http auth
#auth_basic "Restricted";
#auth_basic_user_file /config/nginx/.htpasswd;
# enable the next two lines for ldap auth, also customize and enable ldap.conf in the default conf
#auth_request /auth;
#error_page 401 =200 /login;
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_transmission transmission;
proxy_pass_header X-Transmission-Session-Id;
proxy_pass http://$upstream_transmission:9091;
}
location ^~ /transmission/rpc {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_transmission transmission;
proxy_pass http://$upstream_transmission:9091;
}