From 6dd6659f60f577b2e97e13735577e2627aca3f27 Mon Sep 17 00:00:00 2001 From: Rinat Khaziev Date: Fri, 8 Mar 2024 18:54:26 -0600 Subject: [PATCH] Bump up fastcgi_buffer_size to 64k to pad prod value a bit --- nginx/default.conf | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/nginx/default.conf b/nginx/default.conf index dad7dd94..ce43737e 100644 --- a/nginx/default.conf +++ b/nginx/default.conf @@ -1,4 +1,9 @@ fastcgi_cache_path /var/cache/nginx/photon levels=2 keys_zone=photon:20m max_size=100m inactive=20m; +client_body_buffer_size 256k; + +# These are intentionally slightly larger than production values +fastcgi_buffers 256 4k; +fastcgi_buffer_size 64k; server { @@ -86,8 +91,6 @@ server { fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_intercept_errors on; - fastcgi_buffers 256 4k; - fastcgi_buffer_size 48k; } location @index.php {