Code: Select all
set $upstream_nzbget http://nzbget:6789;
location /nzbget {
auth_request /organizr/auth-0;
proxy_pass $upstream_nzbget;
include /config/nginx/proxy.conf;
proxy_set_header Authorization "Basic base64==";
proxy_pass_header Authorization;
}
location ~ /nzbget/(?:jsonrpc|jsonprpc|xmlrpc) {
proxy_pass $upstream_nzbget;
}
The second scenario is if I have some third party application connect to NZBget remotely for API usage. In this case, I do not want authentication to go through Organizr. I want the third party app to have to enter the basic authorization credentials.
Does anyone know how I can set up NGINX to allow for these 2 distinct scenarios? The example I have above doesn't work because I am still prompted for password when I visit the web page.