I'm running RP3 as Nodered and Deluge (torrent) server, by default I can access Nodered via http://host_ip:1880 and Deluge via http://host_ip:8112 but now I installed Nginx (I'm newbie with it) then configure Nginx as reverse proxy to by pass port and use https (if my word is right??)

I edited /etc/nginx/sites-available/default file so now I can access Nodered via https://host_ip (no port):

server {
  listen 443 ssl;
  ssl on;
  ssl_certificate /etc/nginx/ssl/nginx.crt;
  ssl_certificate_key /etc/nginx/ssl/nginx.key; 
  ssl_verify_depth 3;
  ssl_protocols TLSv1.1 TLSv1.2;

  location / {
    proxy_pass http://localhost:1880/;
    proxy_set_header X-Real-IP $remote_addr;

    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";

Now I like to do with Deluge too, my idea is setting Nginx to access Deluge via https://host_ip/torrent (or any path name) but I really don't know how to set it work. Can anyone help me or saying that it's impossible so I could stop thinking about it :) Thanks

  • location /torrent { proxy_pass http://localhost:8112/; ... etc} Oct 10, 2018 at 8:18
  • I tried it already but when I access host_ip/torrent what I only see is correct page title (Deluge: Web UI 1.3.10) but there is no content on page
    – Bach
    Oct 10, 2018 at 16:10
  • I found solution on Deluge page link
    – Bach
    Oct 11, 2018 at 10:16
  • Can you please make a short answer to explain how you solved the question? It may help others looking for a solution and will finalize the question.
    – Ingo
    Oct 12, 2018 at 12:24

1 Answer 1


In my case I added these lines in Nginx config file

location /torrent {
proxy_pass http://localhost:8112/;
proxy_set_header X-Deluge-Base "/torrent/";
add_header X-Frame-Options SAMEORIGIN;

After restart nginx service you can access Deluge web UI via https://host_ip/torrent

  • Please accept your own answer with a click on the tick on its left side. Only this will finish the question and it will not pop up again year for year.
    – Ingo
    Feb 16, 2020 at 11:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.