Bad Request Invalid Host Error when Bind IP 127.0.0.1

Sonarr version (exact version): 3.0.9.1549-1
Mono version (if Sonarr is not running on Windows): 4.8.1.0-1
OS: archlinuxarm aarch64
Hardware: RPI4 8GB

Description of issue:
When BindAddress of config.xml is set to 127.0.0.1, I can’t load the web interface of sonarr via caddy’s reverse proxy. I get the error message Bad Request Invalid Host Error in the web browser.
When BindAddress of config.xml is set to *, I can load the web interface of sonarr via caddy’s reverse proxy.

I am trying to use caddyv2 as a reverse proxy to sonarr with the following using the following Caddyfile:

mysonarrsubdomain.mydomain.com {
reverse_proxy 127.0.0.1:8989
tls internal
}

nzbget get works in a similar way responding to proxied requests to 127.0.0.1:6789 from the Caddyfile below:

mynzbgetsubdomain.mydomain.com {
reverse_proxy 127.0.0.1:6789
tls internal
}

Do you know how I can get sonarr to bind to 127.0.0.1 and work reversed proxied requests like nzbget?

Thanks! :grinning:

I confirm this issue has been fixed with sonarr v4 beta. Please diregard the initial post.

Thanks very much for your hard work!

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