Sonarr API not working with NGINX Proxy Manager

**Sonarr version (exact version)4.0.1.929:
**Mono version (if Sonarr is not running on Windows)4.0.1.929-ls228:
**OSTurn Key:
**Debug logsNA:
Description of issue:

Wondering if someone can share their config. I have Sonarr behind NPM and works great, but no API

location ^~ /sonarr {
    proxy_pass http://sonarr:8989;
    proxy_set_header Host $host;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Host $host;
    proxy_set_header X-Forwarded-Proto $scheme;
    proxy_redirect off;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection $http_connection;
}
# Allow the API External Access via NGINX
location ^~ /sonarr/api {
    auth_basic off;
    proxy_pass http://sonarr:8989;
}

Have this set up (with the right IP) but if I try and access the API, I get a No webpage was found for the web address

https://domain.com/api/calendar?apikey=yOuRApiKEyg03sheRE&start=2018-10-31&end=2019-05-15

If anyone can advise, would be appreciated

Config is for sonarr on port 8989, you try to browse to something on port 7878…

Thanks for that, I just had the sanitised version in there that was slightly wrong. Ive fixed that. Its not a port issue.

I’m more trying to get the right config from someone that does use the API though a reverse proxy. specifically NPM.

Thanks :slight_smile: