Deluge & Nginx Reverse Proxy

General support for problems installing or using Deluge
rapster88
New User
New User
Posts: 1
Joined: Thu Dec 21, 2017 3:44 pm
OS or Distro: Raspberry Pi

Deluge & Nginx Reverse Proxy

Postby rapster88 » Thu Dec 21, 2017 3:57 pm

Hi

So I have nginx and deluge web running on my raspberry pi (http://192.168.100.10:8112) however, as per this guide (http://dev.deluge-torrent.org/wiki/User ... verseProxy), I want to have deluge web on http://192.168.100.10/deluge (later I will remotely access this over the internet).

I have updated my nginx config according to the guide but when I access http://192.168.100.10/deluge, I got 404 Not Found error page.

Below is my /etc/nginx.conf

Code: Select all

server {

location /deluge {
    proxy_pass http://localhost:8112/;
    proxy_set_header X-Deluge-Base "/deluge/";
    include proxy-control.conf;
    add_header X-Frame-Options SAMEORIGIN;
}
}

and below is proxy-control.conf

Code: Select all

proxy_connect_timeout   1s;
proxy_send_timeout      600;
proxy_read_timeout      36000s;  ## Timeout after 10 hours
proxy_buffer_size       64k;
proxy_buffers           16 32k;
proxy_pass_header       Set-Cookie;
proxy_hide_header       Vary;

proxy_busy_buffers_size         64k;
proxy_temp_file_write_size      64k;

proxy_set_header        Accept-Encoding         '';
proxy_ignore_headers    Cache-Control           Expires;
proxy_set_header        Referer                 $http_referer;
proxy_set_header        Host                    $host;
proxy_set_header        Cookie                  $http_cookie;
proxy_set_header        X-Real-IP               $remote_addr;
proxy_set_header        X-Forwarded-Host        $host;
proxy_set_header        X-Forwarded-Server      $host;
proxy_set_header        X-Forwarded-For         $proxy_add_x_forwarded_for;
proxy_set_header        X-Forwarded-Port        '443';
proxy_set_header        X-Forwarded-Ssl         on;
proxy_set_header        X-Forwarded-Proto       https;
proxy_set_header        Authorization           '';

proxy_buffering         off;
proxy_redirect          off;


DjLegolas
Member
Member
Posts: 12
Joined: Thu Oct 12, 2017 3:31 pm
OS or Distro: Windows

Re: Deluge & Nginx Reverse Proxy

Postby DjLegolas » Fri Dec 22, 2017 8:36 am

Did you entered "/deluge/" to the base section in the webui config file (web.conf)?
If not, do it, and restart the webui process

scoobynz
Member
Member
Posts: 18
Joined: Thu Jan 15, 2015 6:39 am
OS or Distro: debian

Re: Deluge & Nginx Reverse Proxy

Postby scoobynz » Sat Jan 06, 2018 2:29 pm

The server block doesnt go in /etc/nginx.conf - tbh your nginx process probably isnt even running with the server block in it. The server block needs to be added to /etc/nginx/sites-available/default and is then sym-linked to /etc/nginx/sites-enabled/default (it probably already is symlinked!)

Your server block is calling up the file proxy-control.conf. This is a new file, I would create it in /etc/nginx/conf.d/proxy-control.conf. https://github.com/alexgorbatchev/nginx-plex-deluge-proxy/blob/master/media_proxy/proxy-control.conf

Are you using systemd or init? After you make any changes restart nginx and check the nginx logs for any errors.


Return to “Support”

Who is online

Users browsing this forum: No registered users and 12 guests