Skip to content

Commit

Permalink
Increase client_body_buffer_size and client_max_body_size to 16K
Browse files Browse the repository at this point in the history
  • Loading branch information
akf committed Sep 22, 2024
1 parent 9b00429 commit 79fa65f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,13 @@ http {

# client_body_buffer_size and client_max_body_size should match, to
# ensure the $request_body will have data.
# (8K is the default buffer size, and probably more than enough for log messages.)
client_body_buffer_size 8K;
client_max_body_size 8K;
#
# We started with 8K, which is the default buffer size, and learned that
# some POSTs were 9-10K. To check whether the size is too small for your
# application, look for log messages from your log-shipper app with the
# text "client intended to send too large body"
client_body_buffer_size 16K;
client_max_body_size 16K;
lua_need_request_body on;

if ($request_method = POST) {
Expand Down

0 comments on commit 79fa65f

Please sign in to comment.