Nginx reverse-proxy Sonar Ver. issue

I’m just getting a page with nothing on it but Sonar Ver. in unformatted text with my nginx reverse-proxy setup on a Raspberry Pi 3.

Here is my nginx setup:

server {
listen 80;
server_name xxxxxxx.xxxxxxx.org 192.168.1.43;

    location /deluge {
     proxy_pass        http://127.0.0.1:8112/;
     proxy_set_header  X-Deluge-Base "/deluge/";
    }
    location /sonarr {
        proxy_pass        http://127.0.0.1:8989;
        proxy_set_header  X-Real-IP  $remote_addr;
        proxy_set_header        Host            $host;
        proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header        X-Forwarded-Proto $scheme;
        proxy_redirect off;
    }
}


And here is my sonarr.service file:

[Unit]
Description=Sonarr Daemon
After=network.target

[Service]
User=vpn
Group=vpn
Restart=always
RestartSec=5
Type=simple
ExecStart=/usr/bin/mono /opt/NzbDrone/NzbDrone.exe -nobrowser
TimeoutStopSec=20
KillMode=process
Restart=on-failure

[Install]
WantedBy=multi-user.target


Note that when I run mono --debug /opt/NzbDrone/NzbDrone.exe from the command prompt (i.e not through the reverse-proxy) I can access sonarr normally on port 8989…so I know sonarr is at least working on my system.

# Sonarr at port 8989
#-------------------------------------------------------------------------
    location /sonarr {
    proxy_pass http://127.0.0.1:8989;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }

Also make sure you enable it in Sonarr

So you need to add there “/sonarr”

You got me going in the right direction…After reading your reply I edited the config file manually with:

sudo nano /home/vpn/.config/NzbDrone/config.xml

and changed this line:

<UrlBase></UrlBase>

to this:

<UrlBase>/sonarr</UrlBase>

and now it is working correctly. Thank you very much for your help!!!

Now to learn how to use it :slight_smile:

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