Skip to content
This repository was archived by the owner on Jan 6, 2021. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions root/defaults/proxy-confs/nzbget.subdomain.conf.sample
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ server {
include /config/nginx/ssl.conf;

client_max_body_size 0;
# enable for ldap auth, fill in ldap details in ldap.conf

# enable for ldap auth, fill in ldap details in ldap.conf
#include /config/nginx/ldap.conf;

location / {
Expand All @@ -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 changes: 7 additions & 0 deletions root/defaults/proxy-confs/nzbget.subfolder.conf.sample
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}