From e637598f8c0a15aceba012da79c58193e729c028 Mon Sep 17 00:00:00 2001 From: Xavier ROOT Date: Fri, 13 Nov 2015 13:39:39 +0100 Subject: [PATCH] proxy set timeout --- conf/nginx.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/conf/nginx.conf b/conf/nginx.conf index 78e8974..0a3c406 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -28,6 +28,11 @@ location ~ ^PATHTOCHANGE/ws/ { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto https; proxy_redirect off; + + # To avoid disconnecting after 60sec : + proxy_read_timeout 14400s; + proxy_send_timeout 14400s; + # (14400s is 4h) } }