Page 1 of 1

Deluge and NginX really slow

Posted: Sat May 27, 2017 8:56 am
by AlxT
So, i managed to revers proxy deluge with nginx according to http://dev.deluge-torrent.org/wiki/User ... verseProxy and all works fine except it is really slow on startup. I mean it takes exactly 1 minuit to load the interface and after that it works flawleslly.

This is the deluge block

Code: Select all

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 the proxy control

Code: Select all

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;
Could it be the

Code: Select all

proxy_connect_timeout   59s;
since this is set at 59 seconds?
It seems like this is timing out and then something else happens that makes the UI load?

Forgive my ignorance i am literally very new to web servers.

EDIT:

Yep most defenately the

Code: Select all

proxy_connect_timeout   59s;
setting. I changed this to 10s and it took 11 to load. so it seems that this times out and then it loads. Any suggestions on how to proceed?

Re: Deluge and NginX really slow

Posted: Tue May 30, 2017 12:26 pm
by AlxT
Well i have resolved to a quick patch of setting

Code: Select all

proxy_connect_timeout
to

Code: Select all

1s;
but i whould really like to figure this out.
So, common guys, no takers on this? Save a noob the agony :lol: