Sonarr version (exact version): 2.0.0.5163
Mono version (if Sonarr is not running on Windows): 5.12.0.226
OS: Ubuntu 16.04
Debug logs:
(Make sure debug logging is enabled in settings and post the full log to hastebin/pastebin/dropbox/google drive or something similar, do not post them directly here. Post in .txt not .doc, .rtf or some other formatted document)
Description of issue:
I’m trying to set up sonarr, radarr, jackett, and rutorrent all under the same nginx install using proxy_pass
I’ve gotten it nearly working, except that when trying to access sonarr or radarr using their proxy locations, I only get ‘Sonarr Ver.’ or ‘Radarr Ver.’
I did make sure to set a base URL, which made no difference, except that when I use the raw address to access settings (http://local.ip:8989) a good number of things break like images and logs, because it’s trying to access them at the base url.
nginx config:
server {
listen 0.0.0.0:80;
server_name local.domain local.ip ddns.address;
root /var/www;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log debug;
#return 301 https://$server_name$request_uri;
index index.html index.php index.htm;
location / {
try_files $uri $uri/ =404;
}
location /rutorrent {
auth_basic "Restricted";
auth_basic_user_file /etc/nginx/.htpasswd;
include /etc/nginx/conf.d/php;
include /etc/nginx/conf.d/cache;
}
location /sonarr {
proxy_pass http://127.0.0.1:8989;
proxy_set_header Host localhost;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location /radarr {
proxy_pass http://127.0.0.1:7878;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host localhost;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_redirect off;
}
location /jackett {
proxy_pass http://127.0.0.1:9117;
proxy_set_header Host localhost;
}
#include /etc/nginx/sites-available/dload-loc;
location ~ /\.ht {
deny all;
}
}
For the above, Host is set to localhost, because if I leave it as just $host
, I get a “bad request (invalid host)” error
config.xml:i
<Config>
<LogLevel>Debug</LogLevel>
<Port>8989</Port>
<UrlBase>/sonarr</UrlBase>
<BindAddress>local.IP</BindAddress>
<SslPort>9898</SslPort>
<EnableSsl>True</EnableSsl>
<ApiKey>262c6c0a2fae4627966c1435977c98c7</ApiKey>
<AuthenticationMethod>None</AuthenticationMethod>
<LaunchBrowser>True</LaunchBrowser>
<Branch>master</Branch>
<SslCertHash></SslCertHash>
<UpdateMechanism>BuiltIn</UpdateMechanism>
</Config>
Any help would be much appreciated!