mirror of
https://github.com/linuxserver/reverse-proxy-confs.git
synced 2025-07-07 05:21:31 -07:00
Merge pull request #2 from linuxserver/nzbget
Add nzbget rpc locations for api
This commit is contained in:
commit
eed7769c9b
2 changed files with 14 additions and 0 deletions
|
@ -26,4 +26,11 @@ server {
|
||||||
set $upstream_nzbget nzbget;
|
set $upstream_nzbget nzbget;
|
||||||
proxy_pass http://$upstream_nzbget:6789;
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,3 +14,10 @@ location ^~ /nzbget {
|
||||||
set $upstream_nzbget nzbget;
|
set $upstream_nzbget nzbget;
|
||||||
proxy_pass http://$upstream_nzbget:6789;
|
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;
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue