diff --git a/nzbget.subdomain.conf.sample b/nzbget.subdomain.conf.sample index 5bfb58e..11654aa 100644 --- a/nzbget.subdomain.conf.sample +++ b/nzbget.subdomain.conf.sample @@ -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; + } }