Skip to content

Commit ffc0efe

Browse files
committed
Performance updates
1 parent 6b0bcaa commit ffc0efe

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/docker-entrypoint.d/00-render-templates.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ function render_templates {
1717
}
1818

1919
export WORKER_FILE_LIMIT=${WORKER_FILE_LIMIT:=$(( WORKER_CONNECTIONS * 2 ))}
20+
export WSGI_TIMEOUT=${WSGI_TIMEOUT:-${KEEPALIVE_TIMEOUT}}
2021

2122
render_templates "/etc/nginx/*.template" "/etc/nginx"
2223
render_templates "/etc/nginx/conf.d/*.template" "/etc/nginx/conf.d"

src/etc/nginx/includes/uwsgi.conf.template

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ uwsgi_pass app;
22
uwsgi_param HTTP_X_REQUEST_ID $request_id;
33
uwsgi_param HTTP_HOST $host;
44
include uwsgi_params;
5-
uwsgi_read_timeout {{ .Env.KEEPALIVE_TIMEOUT }};
6-
uwsgi_send_timeout {{ .Env.KEEPALIVE_TIMEOUT }};
5+
uwsgi_read_timeout {{ .Env.WSGI_TIMEOUT }};
6+
uwsgi_send_timeout {{ .Env.WSGI_TIMEOUT }};

0 commit comments

Comments
 (0)