client_max_body_size is a parameter of nginx.conf and not of default.conf (https://nginx.org/en/docs/http/ngx_http_core_module.html#client_max_body_size )

add client_body_buffer_size

prevents the following logs: [warn] a client request body is buffered to a temporary file
This commit is contained in:
Brandon
2024-11-26 16:07:27 +01:00
parent 60fd0aa79e
commit bfc61fb64e
2 changed files with 4 additions and 3 deletions

View File

@@ -8,8 +8,6 @@ server {
server_tokens off;
client_max_body_size 100M;
root /var/www/html/public;
index index.php;

View File

@@ -22,5 +22,8 @@ http {
keepalive_timeout 65;
gzip on;
client_max_body_size 100M;
client_body_buffer_size 100M;
include /etc/nginx/conf.d/*.conf;
}
}