From 57a1247457f89e59fea810b6e552ecc594f0dd0d Mon Sep 17 00:00:00 2001 From: Mike Crute Date: Mon, 18 Jan 2021 06:22:51 +0000 Subject: nginx: prevent most request buffering --- nginx-common/conf/nginx.conf | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/nginx-common/conf/nginx.conf b/nginx-common/conf/nginx.conf index e69dd9c..c04990a 100644 --- a/nginx-common/conf/nginx.conf +++ b/nginx-common/conf/nginx.conf @@ -25,7 +25,12 @@ http { keepalive_timeout 128; # Try to avoid buffering requests to disk - client_body_buffer_size 1024k; + # This is about 4MB + client_body_buffer_size 4000k; + + # Try to avoid buffering backend responses to disk + # This is about 4MB + proxy_buffers 1000 4k; gzip on; gzip_proxied any; -- cgit v1.2.3