Page 1 of 1

Nginx on Windows

Posted: Sat Nov 05, 2016 2:53 pm
by MrAnderson
Having trouble getting Deluge working with nginx on Windows. Followed the other articles I found in this forum, but it is not working correctly. The internal address works fine. The nginx URL loads, but the frames are all messed up. Relevant lines from Web.conf and nginx.conf are eblow as well as a screen shot. I am thinking it is an extra or missing trialing forward slash somewhere.


web.conf

Code: Select all

 "base": "/deluge", 
nginx.conf

Code: Select all

location /deluge {
        proxy_pass https://192.168.1.103:8112/;
        proxy_set_header X-Deluge-Base "/deluge/";
		proxy_connect_timeout   59s;
		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;
}

Re: Nginx on Windows

Posted: Sat Nov 05, 2016 5:53 pm
by Cas

Re: Nginx on Windows

Posted: Sat Nov 05, 2016 7:03 pm
by MrAnderson
Sorry for the newbie question. I am running on Windows and am not running apache or any web server for that matter. I do not understand how that article relates to this scenario. Does Deluge have to be served up from a web server in order for the reverse proxy to work? I have tired the nginx code from that article, but it did not work. What am I missing?