[Not Solved]
Aug 10, 2018, 10:14 PM
(This post was last modified: Aug 10, 2018, 10:16 PM by bzowk.)
Hey Guys -
I'm having an issue getting Deluge working over reverse proxy in a new NGINX setup in Windows. Below is all of the information including what I've tried, results, and additional information.
This afternoon, I made the switch from Apache for Windows to NGINX as I've been meaning to do so for a while. The configuration I'm using is:
Unfortunately, I haven't found a way to set a base path for Deluge (Windows). I was able to get it working in Apache a while back given that fact, but cannot in NGINX. The closest I've gotten loads the page, but it is heavily distorted as seen here
DelugeDistortion.jpg (Size: 56.04 KB / Downloads: 1) . Below is what I've tried so far to get it working, software versions, system specs, and more if it helps.
Any suggestions? Thanks!!
Example of How Most Services are Configured for RP in nginx.conf
What I've Tried Adding to nginx.conf to get Deluge Working with RP
Each of the 3 were tried one at a time while restarting the NGINX service in between each change, obviously. I have also tested that "http://127.0.0.1:8112" works correctly. [i]For one of the below, I had to create a proxy-control.conf file which I populated with the config listed here. I also tried removing slashes in various places for a couple of them without luck.[/i]
Attempted to Add Base Path to Deluge
System Specs & Versions
I'm having an issue getting Deluge working over reverse proxy in a new NGINX setup in Windows. Below is all of the information including what I've tried, results, and additional information.
This afternoon, I made the switch from Apache for Windows to NGINX as I've been meaning to do so for a while. The configuration I'm using is:
- Listens on 80 & 443
- Forwards all 80 requests to 443
- Uses 3rd party signed SSL certs
- Reverse Proxy for 15+ locally hosted services - most (including Deluge) hosted on the same system that runs NGINX
Unfortunately, I haven't found a way to set a base path for Deluge (Windows). I was able to get it working in Apache a while back given that fact, but cannot in NGINX. The closest I've gotten loads the page, but it is heavily distorted as seen here
DelugeDistortion.jpg (Size: 56.04 KB / Downloads: 1) . Below is what I've tried so far to get it working, software versions, system specs, and more if it helps.
Any suggestions? Thanks!!
Example of How Most Services are Configured for RP in nginx.conf
Code:
location /tautulli {
proxy_pass http://127.0.0.1:8585/tautulli;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_redirect off;
proxy_buffering off;
}
What I've Tried Adding to nginx.conf to get Deluge Working with RP
Each of the 3 were tried one at a time while restarting the NGINX service in between each change, obviously. I have also tested that "http://127.0.0.1:8112" works correctly. [i]For one of the below, I had to create a proxy-control.conf file which I populated with the config listed here. I also tried removing slashes in various places for a couple of them without luck.[/i]
Code:
location /deluge {
proxy_pass http://127.0.0.1:8112/;
proxy_set_header X-Deluge-Base "/deluge/";
}
location /deluge {
proxy_pass http://localhost:8112/;
proxy_set_header Host $host;
proxy_set_header X-Deluge-Base "/deluge/";
proxy_set_header X-Real_IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
location /deluge {
proxy_pass http://127.0.0.1:8112/;
proxy_set_header X-Deluge-Base "/deluge/";
include proxy-control.conf;
add_header X-Frame-Options SAMEORIGIN;
}
Attempted to Add Base Path to Deluge
- Via the official wiki, I tried executing "deluge-web --base /deluge/" but that doesn't do anything. I have Deluge start in daemon mode by having "deluged.exe" execute at startup anyways which I killed prior to testing. Tried parameter above with "deluged.exe" too without luck too
- Tried changing "base" in "web.config" from "/" to "/deluge" as well as "/deluge/" - killing "deluged.exe" in between and testing. When trying to visit http://localhost:8112/deluge after doing so, I get a blank page. Know I'm editing the correct file as when it's changed, the default URL ending in 8112 doesn't work, yet does if I revert it back to "/"
Code:
ProxyPass /deluge http://192.168.0.25:8112
<Location /deluge>
ProxyPassReverse /
ProxyPassReverseCookiePath / /deluge
RequestHeader set X-Deluge-Base "/deluge/"
Order allow,deny
Allow from all
</Location>
System Specs & Versions
- Intel i7-3770k / 32gb RAM
- Windows 10 x64 1803
- Deluge for Windows 1.3.15 (Primarially have "deluged.exe" start automatically at startup and access via webpage)
- NGINX for Windows 1.15.2
- PHP7 - VC15 x64 Non Thread Safe (Need for Organizr v2)