From acd14e9b5bbcb49b5c17071b5f292c57533fe147 Mon Sep 17 00:00:00 2001 From: Piero Toffanin Date: Wed, 7 Jun 2017 15:27:02 -0400 Subject: [PATCH] Increased gunicorn/nginx timeout --- nginx/nginx.conf | 3 +++ start.sh | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 5a4e7e85..23c4fac6 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -36,6 +36,9 @@ http { keepalive_timeout 5; + proxy_connect_timeout 360s; + proxy_read_timeout 360s; + # path for static files location /static { root /webodm/build; diff --git a/start.sh b/start.sh index 969f0673..64425455 100755 --- a/start.sh +++ b/start.sh @@ -83,7 +83,7 @@ else echo -e "\033[91mWARN:\033[39m /webodm/build/static does not exist, CSS, JS and other files might not be available." fi nginx -c $(pwd)/nginx/nginx.conf - gunicorn webodm.wsgi --bind unix:/tmp/gunicorn.sock --preload + gunicorn webodm.wsgi --bind unix:/tmp/gunicorn.sock --timeout 360 --preload fi # If this is executed, it means the previous command failed, don't display the congratulations message