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

Merge pull request #277 from drbyte/fix-413-request-entity-too-large-and-uploads

Fix large-upload problems by setting PHP limits and Nginx max size
This commit is contained in:
Adam Wathan
2017-02-20 09:25:12 -05:00
committed by GitHub
6 changed files with 28 additions and 1 deletions

View File

@@ -11,6 +11,7 @@ http {
sendfile on;
keepalive_timeout 65;
client_max_body_size 128M;
gzip on;
gzip_comp_level 5;

View File

@@ -0,0 +1,8 @@
; Max memory per instance
memory_limit = 128M
;The maximum size of an uploaded file.
upload_max_filesize = 128M
;Sets max size of post data allowed. This setting also affects file upload. To upload large files, this value must be larger than upload_max_filesize
post_max_size = 128M

View File

@@ -2,7 +2,6 @@ server {
listen 80 default_server;
root /;
charset utf-8;
client_max_body_size 128M;
location /VALET_STATIC_PREFIX/ {
internal;