From be77195fd29c4877f85770978e02b07e82991f85 Mon Sep 17 00:00:00 2001 From: ma-04 <120931948+ma-04@users.noreply.github.com> Date: Thu, 21 May 2026 11:20:22 +0600 Subject: [PATCH 1/2] feat: Add FastCGI Buffer config --- .gitignore | 1 + nginx/common/fastcgi-cache.conf | 2 -- nginx/common/limits.conf | 4 +++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 93cdfdf..ad97f28 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +.DS_Store nginx/default.conf nginx/custom/* php/custom/* diff --git a/nginx/common/fastcgi-cache.conf b/nginx/common/fastcgi-cache.conf index 762c248..bf64b28 100644 --- a/nginx/common/fastcgi-cache.conf +++ b/nginx/common/fastcgi-cache.conf @@ -3,8 +3,6 @@ fastcgi_cache_path /var/run/nginx-cache levels=1:2 keys_zone=WORDPRESS:50m inact fastcgi_cache_key "$scheme$request_method$host$request_uri"; fastcgi_cache_use_stale error timeout invalid_header updating http_500 http_503; fastcgi_cache_valid 200 301 302 404 1h; -fastcgi_buffers 16 16k; -fastcgi_buffer_size 32k; fastcgi_param SERVER_NAME $http_host; fastcgi_ignore_headers Cache-Control Expires Set-Cookie; fastcgi_keep_conn on; diff --git a/nginx/common/limits.conf b/nginx/common/limits.conf index e813a5a..b66ae02 100644 --- a/nginx/common/limits.conf +++ b/nginx/common/limits.conf @@ -19,4 +19,6 @@ send_timeout 30; # your php.ini for the changes to apply. client_max_body_size 100M; -fastcgi_read_timeout 300; \ No newline at end of file +fastcgi_read_timeout 300; +fastcgi_buffers 16 16k; +fastcgi_buffer_size 32k; \ No newline at end of file From 98d3a7b803f6c557f3ceed48beb3827f2a80bc6f Mon Sep 17 00:00:00 2001 From: ma-04 <120931948+ma-04@users.noreply.github.com> Date: Thu, 21 May 2026 11:35:40 +0600 Subject: [PATCH 2/2] chore: fix style --- nginx/common/limits.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nginx/common/limits.conf b/nginx/common/limits.conf index b66ae02..848f92f 100644 --- a/nginx/common/limits.conf +++ b/nginx/common/limits.conf @@ -20,5 +20,5 @@ send_timeout 30; client_max_body_size 100M; fastcgi_read_timeout 300; -fastcgi_buffers 16 16k; -fastcgi_buffer_size 32k; \ No newline at end of file +fastcgi_buffer_size 64k; +fastcgi_buffers 16 32k; \ No newline at end of file