From e0b4734dab6e0cee8f176107c0cc2aa3da67065a Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Tue, 28 Jun 2016 17:18:37 +0800 Subject: [PATCH] Added support upload file size setting. Signed-off-by: Bo-Yi Wu --- nginx/nginx.conf | 1 + php-fpm/laravel.ini | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 17ac882..3e8dadd 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -15,6 +15,7 @@ http { tcp_nodelay on; keepalive_timeout 15; types_hash_max_size 2048; + client_max_body_size 20M; include /etc/nginx/mime.types; default_type application/octet-stream; access_log on; diff --git a/php-fpm/laravel.ini b/php-fpm/laravel.ini index b31c55b..186c8e1 100644 --- a/php-fpm/laravel.ini +++ b/php-fpm/laravel.ini @@ -2,3 +2,13 @@ date.timezone=UTC display_errors=Off log_errors=On extension=mongodb.so + +; Maximum amount of memory a script may consume (128MB) +; http://php.net/memory-limit +memory_limit = 128M +; Maximum allowed size for uploaded files. +; http://php.net/upload-max-filesize +upload_max_filesize = 20M +; Sets max size of post data allowed. +; http://php.net/post-max-size +post_max_size = 20M