mirror of
https://github.com/linuxserver/reverse-proxy-confs.git
synced 2025-07-06 04:51:33 -07:00
Adjust locations for nzbget rpc
This commit is contained in:
parent
68093170aa
commit
6f17497d63
2 changed files with 30 additions and 2 deletions
|
@ -28,7 +28,21 @@ server {
|
||||||
proxy_pass http://$upstream_nzbget:6789;
|
proxy_pass http://$upstream_nzbget:6789;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ (/nzbget)?/(jsonrpc|jsonprpc|xmlrpc) {
|
location ^~ /nzbget/jsonrpc {
|
||||||
|
include /config/nginx/proxy.conf;
|
||||||
|
resolver 127.0.0.11 valid=30s;
|
||||||
|
set $upstream_nzbget nzbget;
|
||||||
|
proxy_pass http://$upstream_nzbget:6789;
|
||||||
|
}
|
||||||
|
|
||||||
|
location ^~ /nzbget/jsonprpc {
|
||||||
|
include /config/nginx/proxy.conf;
|
||||||
|
resolver 127.0.0.11 valid=30s;
|
||||||
|
set $upstream_nzbget nzbget;
|
||||||
|
proxy_pass http://$upstream_nzbget:6789;
|
||||||
|
}
|
||||||
|
|
||||||
|
location ^~ /nzbget/xmlrpc {
|
||||||
include /config/nginx/proxy.conf;
|
include /config/nginx/proxy.conf;
|
||||||
resolver 127.0.0.11 valid=30s;
|
resolver 127.0.0.11 valid=30s;
|
||||||
set $upstream_nzbget nzbget;
|
set $upstream_nzbget nzbget;
|
||||||
|
|
|
@ -15,7 +15,21 @@ location ^~ /nzbget {
|
||||||
proxy_pass http://$upstream_nzbget:6789;
|
proxy_pass http://$upstream_nzbget:6789;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ /nzbget/(jsonrpc|jsonprpc|xmlrpc) {
|
location ^~ /nzbget/jsonrpc {
|
||||||
|
include /config/nginx/proxy.conf;
|
||||||
|
resolver 127.0.0.11 valid=30s;
|
||||||
|
set $upstream_nzbget nzbget;
|
||||||
|
proxy_pass http://$upstream_nzbget:6789;
|
||||||
|
}
|
||||||
|
|
||||||
|
location ^~ /nzbget/jsonprpc {
|
||||||
|
include /config/nginx/proxy.conf;
|
||||||
|
resolver 127.0.0.11 valid=30s;
|
||||||
|
set $upstream_nzbget nzbget;
|
||||||
|
proxy_pass http://$upstream_nzbget:6789;
|
||||||
|
}
|
||||||
|
|
||||||
|
location ^~ /nzbget/xmlrpc {
|
||||||
include /config/nginx/proxy.conf;
|
include /config/nginx/proxy.conf;
|
||||||
resolver 127.0.0.11 valid=30s;
|
resolver 127.0.0.11 valid=30s;
|
||||||
set $upstream_nzbget nzbget;
|
set $upstream_nzbget nzbget;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue