diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 17ac8821..3e8dadde 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 b31c55b7..186c8e1c 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