diff options
author | Mike Crute <mike@crute.us> | 2021-01-18 06:22:51 +0000 |
---|---|---|
committer | Mike Crute <mike@crute.us> | 2021-01-18 06:22:51 +0000 |
commit | 57a1247457f89e59fea810b6e552ecc594f0dd0d (patch) | |
tree | c9803ae6a2659238eb5f31f5f9e9adeb82710ffa | |
parent | 96515d45bec59ad034eb0efe0601d0813caa895a (diff) | |
download | dockerfiles-57a1247457f89e59fea810b6e552ecc594f0dd0d.tar.bz2 dockerfiles-57a1247457f89e59fea810b6e552ecc594f0dd0d.tar.xz dockerfiles-57a1247457f89e59fea810b6e552ecc594f0dd0d.zip |
nginx: prevent most request buffering
-rw-r--r-- | nginx-common/conf/nginx.conf | 7 |
1 files changed, 6 insertions, 1 deletions
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 { | |||
25 | keepalive_timeout 128; | 25 | keepalive_timeout 128; |
26 | 26 | ||
27 | # Try to avoid buffering requests to disk | 27 | # Try to avoid buffering requests to disk |
28 | client_body_buffer_size 1024k; | 28 | # This is about 4MB |
29 | client_body_buffer_size 4000k; | ||
30 | |||
31 | # Try to avoid buffering backend responses to disk | ||
32 | # This is about 4MB | ||
33 | proxy_buffers 1000 4k; | ||
29 | 34 | ||
30 | gzip on; | 35 | gzip on; |
31 | gzip_proxied any; | 36 | gzip_proxied any; |