1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-05 00:20:08 +01:00

Ensure 128mb max client body size.

client_max_body_size does not propagate down from the http context into
the server context.

See this stack overflow for further details on the issue:
https://stackoverflow.com/questions/2056124/nginx-client-max-body-size-has-no-effect

This fix ensures that the max client body size is always the default
128mb as specified in nginx.conf.
This commit is contained in:
Kim Ravn Hansen
2017-06-22 05:54:31 +02:00
parent fda0d3440d
commit b8bfe077b4
2 changed files with 2 additions and 0 deletions

View File

@@ -9,6 +9,7 @@ server {
server_name VALET_SITE www.VALET_SITE *.VALET_SITE;
root /;
charset utf-8;
client_max_body_size 128M;
location /VALET_STATIC_PREFIX/ {
internal;