Spotweb as indexer - nginx reverse proxies

Hi there,

I’m trying to add Spotweb as an indexer for Sonarr. I’m trying to add it as a “Newznab - custom” with the following values:

Name: Spotweb
url: http://localhost/spotweb
api: xxxxx

I’m running both sonarr and spotweb as reverse proxies in nginx. Below is my nginx config:

server {
    listen 80 default_server;
    listen [::]:80 default_server ipv6only=on;

    return 301 https://$host$request_uri;

    root /var/www;
    index index.php index.html index.htm;

    server_name localhost;
}

server {
    listen 443 default ssl;
    server_name server.mydomain.com;

    include /etc/nginx/conf.d/ssl.conf;

    root /var/www;
    index index.php index.html index.htm;

    access_log /var/log/nginx/access.log combined;
    error_log /var/log/nginx/error.log warn;

    if ( $scheme = http )
    {
    rewrite ^ https://$server_name$request_uri? permanent;
}

location /spotweb {
    alias /var/www/spotweb;
    index index.php;   
    rewrite /api/?$ /spotweb/index.php?page=newznabapi last;
}

location /sonarr {
    proxy_pass http://localhost:8989/sonarr;
    include /etc/nginx/conf.d/proxy.conf;
    include /etc/nginx/conf.d/auth-basic.conf;
    proxy_set_header Host localhost:8989;
}

Unfortunately it’s not working, as I’m getting the following error when I try to add the indexer: “Unable to connect to indexer, check the log for more details”. This is the log output:

HttpClient warning:

HTTP Error - Res: [GET] http://localhost/spotweb/api?t=tvsearch&cat=5030,5040&extended=1&apikey=<removed>&offset=0&limit=100 : 401.Unauthorized

Newznab warning:

Unable to connect to indexer: HTTP request failed: [401:Unauthorized] [GET] at [http://localhost/spotweb/api?t=tvsearch&cat=5030,5040&extended=1&apikey=<removed>&offset=0&limit=100]

NzbDroneErrorPipeline warning:

Invalid request Validation failed:
-- Unable to connect to indexer, check the log for more details

Sonarr doesn’t seem to be able to pass the basic authentication, hence the 401. Any idea how I can disable the basic auth in nginx specifically for sonarr when it tries to interact with spotweb? Or is there another solution to this problem? Many thanks in advance!

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.