Skip to content

Commit

Permalink
Merge pull request #675 from Automattic/update/nginx-header-limits
Browse files Browse the repository at this point in the history
Bump up fastcgi_buffer_size to 64k to pad prod value a bit
  • Loading branch information
sjinks authored Mar 9, 2024
2 parents 9924202 + 6dd6659 commit 2362b61
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions nginx/default.conf
Original file line number Diff line number Diff line change
@@ -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 {

Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 2362b61

Please sign in to comment.