From 0c5520e512b53b0af43f486b32d2af677a3c6ecc Mon Sep 17 00:00:00 2001 From: HalianElf <28244771+HalianElf@users.noreply.github.com> Date: Fri, 14 Feb 2020 12:23:56 -0500 Subject: [PATCH] Update RPC endpoints Allows credentials to be passed through the URL for apps like LunaSea --- nzbget.subdomain.conf.sample | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nzbget.subdomain.conf.sample b/nzbget.subdomain.conf.sample index de33466..b5c45be 100644 --- a/nzbget.subdomain.conf.sample +++ b/nzbget.subdomain.conf.sample @@ -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;