Skip to content

Commit b8bfe07

Browse files
author
Kim Ravn Hansen
committed
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.
1 parent fda0d34 commit b8bfe07

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

cli/stubs/secure.valet.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ server {
99
server_name VALET_SITE www.VALET_SITE *.VALET_SITE;
1010
root /;
1111
charset utf-8;
12+
client_max_body_size 128M;
1213

1314
location /VALET_STATIC_PREFIX/ {
1415
internal;

cli/stubs/valet.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ server {
22
listen 80 default_server;
33
root /;
44
charset utf-8;
5+
client_max_body_size 128M;
56

67
location /VALET_STATIC_PREFIX/ {
78
internal;

0 commit comments

Comments
 (0)