From b8bfe077b423ade20f31d90587140c462d4df60f Mon Sep 17 00:00:00 2001 From: Kim Ravn Hansen <> Date: Thu, 22 Jun 2017 05:54:31 +0200 Subject: [PATCH] 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. --- cli/stubs/secure.valet.conf | 1 + cli/stubs/valet.conf | 1 + 2 files changed, 2 insertions(+) diff --git a/cli/stubs/secure.valet.conf b/cli/stubs/secure.valet.conf index 755422d..8471a82 100644 --- a/cli/stubs/secure.valet.conf +++ b/cli/stubs/secure.valet.conf @@ -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; diff --git a/cli/stubs/valet.conf b/cli/stubs/valet.conf index 1c72d24..75fb7d9 100644 --- a/cli/stubs/valet.conf +++ b/cli/stubs/valet.conf @@ -2,6 +2,7 @@ server { listen 80 default_server; root /; charset utf-8; + client_max_body_size 128M; location /VALET_STATIC_PREFIX/ { internal;