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:
@@ -11,6 +11,7 @@ http {
|
||||
|
||||
sendfile on;
|
||||
keepalive_timeout 65;
|
||||
client_max_body_size 128M;
|
||||
|
||||
gzip on;
|
||||
gzip_comp_level 5;
|
||||
|
||||
8
cli/stubs/php-memory-limits.ini
Normal file
8
cli/stubs/php-memory-limits.ini
Normal 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
|
||||
@@ -2,7 +2,6 @@ server {
|
||||
listen 80 default_server;
|
||||
root /;
|
||||
charset utf-8;
|
||||
client_max_body_size 128M;
|
||||
|
||||
location /VALET_STATIC_PREFIX/ {
|
||||
internal;
|
||||
|
||||
Reference in New Issue
Block a user