From deee515e0243e9094aaa788675022af2754f1b80 Mon Sep 17 00:00:00 2001 From: Bennett Goble Date: Thu, 18 Jan 2024 17:46:31 -0800 Subject: [PATCH] Set uwsgi read/send timeouts to keepalive Synchronize uwsgi timeouts with keepalive setting, otherwise they will remain at the default 60s. --- src/etc/nginx/templates/default.conf.template | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/etc/nginx/templates/default.conf.template b/src/etc/nginx/templates/default.conf.template index 7c560b5..18718cd 100644 --- a/src/etc/nginx/templates/default.conf.template +++ b/src/etc/nginx/templates/default.conf.template @@ -24,6 +24,8 @@ server { uwsgi_param HTTP_X_REQUEST_ID $request_id; uwsgi_param HTTP_HOST $host; include uwsgi_params; + uwsgi_read_timeout {{ .Env.KEEPALIVE_TIMEOUT }}; + uwsgi_send_timeout {{ .Env.KEEPALIVE_TIMEOUT }}; } {{ else }} location / {