Merge pull request #120 from HalianElf/master

NZBGet URL Credentials
This commit is contained in:
Eric Nemchik 2020-02-15 10:36:36 -06:00 committed by GitHub
commit 9aad5e0c42
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 7 deletions

View file

@ -28,21 +28,21 @@ server {
proxy_pass http://$upstream_nzbget:6789;
}
location ^~ /nzbget/jsonrpc {
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 {
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 {
location ~ (/nzbget)?(/[^\/:]*:[^\/]*)?/xmlrpc {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_nzbget nzbget;

View file

@ -1,6 +1,6 @@
# nzbget does not require a base url setting
location ^~ /nzbget {
location /nzbget {
# enable the next two lines for http auth
#auth_basic "Restricted";
#auth_basic_user_file /config/nginx/.htpasswd;
@ -15,21 +15,21 @@ location ^~ /nzbget {
proxy_pass http://$upstream_nzbget:6789;
}
location ^~ /nzbget/jsonrpc {
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 {
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 {
location ~ /nzbget(/[^\/:]*:[^\/]*)?/xmlrpc {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_nzbget nzbget;