Can anyone maybe take a look at my settings for rutorrent to get my reverse proxy working? I've got it working for everything else, I just get a 502 bad gateway error on rutorrent for some reason. I'm sure it's something simple I have set wrong. I get this error in my nginx log:
2019/12/29 15:55:20 [error] 442#442: *2565 connect() failed (111: Connection refused) while connecting to upstream, client: 195.154.63.222, server: rutorrent.*, request: "GET / HTTP/1.1", upstream: "http://172.18.0.7:80/", host: "rutorrent.xxxxxxxx.xxx"
Thanks!
And I'm not sure where that IP address is coming from. Just noticed that, it's not mine.
This is my .conf file:
# make sure that your dns has a cname set for rutorrent
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name rutorrent.*;
include /config/nginx/ssl.conf;
client_max_body_size 0;
# enable for ldap auth, fill in ldap details in ldap.conf
#include /config/nginx/ldap.conf;
location / {
# enable the next two lines for http auth
#auth_basic "Restricted";
#auth_basic_user_file /config/nginx/.htpasswd;
# enable the next two lines for ldap auth
#auth_request /auth;
#error_page 401 =200 /login;
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_rutorrent binhex-rtorrentvpn;
proxy_pass http://$upstream_rutorrent:80;
}
location /RPC2 {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_rutorrent binhex-rtorrentvpn;
proxy_pass http://$upstream_rutorrent:80;
}
}