Merge pull request #2 from linuxserver/nzbget

Add nzbget rpc locations for api
This commit is contained in:
aptalca
2018-11-19 19:57:31 -05:00
committed by GitHub
2 changed files with 14 additions and 0 deletions
+7
View File
@@ -26,4 +26,11 @@ server {
set $upstream_nzbget nzbget;
proxy_pass http://$upstream_nzbget:6789;
}
location ~ (/nzbget)?/(jsonrpc|jsonprpc|xmlrpc) {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_nzbget nzbget;
proxy_pass http://$upstream_nzbget:6789;
}
}
+7
View File
@@ -14,3 +14,10 @@ location ^~ /nzbget {
set $upstream_nzbget nzbget;
proxy_pass http://$upstream_nzbget:6789;
}
location ~ /nzbget/(jsonrpc|jsonprpc|xmlrpc) {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_nzbget nzbget;
proxy_pass http://$upstream_nzbget:6789;
}