From df4906ce6660d6102d2a573e96731a9d64093fff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Bedna=C5=99=C3=ADk?= <jan.bednarik@gmail.com> Date: Wed, 26 Aug 2020 03:08:51 +0200 Subject: [PATCH] Increase timeouts to 60s --- gunicorn.conf.py | 2 ++ nginx.conf | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/gunicorn.conf.py b/gunicorn.conf.py index 2ac2d15b..16484fd5 100644 --- a/gunicorn.conf.py +++ b/gunicorn.conf.py @@ -3,3 +3,5 @@ accesslog = "-" workers = 1 max_requests = 1000 max_requests_jitter = 10 +timeout = 60 +graceful_timeout = 60 diff --git a/nginx.conf b/nginx.conf index ee2e0763..8d1a9d66 100644 --- a/nginx.conf +++ b/nginx.conf @@ -9,6 +9,11 @@ server { client_max_body_size 10M; + proxy_connect_timeout 60; + proxy_send_timeout 60; + proxy_read_timeout 60; + send_timeout 60; + location /media/ { alias /var/opt/majak/media_files/; } -- GitLab