Skip to content

Commit 6507850

Browse files
authored
Merge pull request laradock#123 from appleboy/patch-6
Added support upload file size setting.
2 parents 2433924 + e0b4734 commit 6507850

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

nginx/nginx.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ http {
1515
tcp_nodelay on;
1616
keepalive_timeout 15;
1717
types_hash_max_size 2048;
18+
client_max_body_size 20M;
1819
include /etc/nginx/mime.types;
1920
default_type application/octet-stream;
2021
access_log on;

php-fpm/laravel.ini

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,13 @@ date.timezone=UTC
22
display_errors=Off
33
log_errors=On
44
extension=mongodb.so
5+
6+
; Maximum amount of memory a script may consume (128MB)
7+
; http://php.net/memory-limit
8+
memory_limit = 128M
9+
; Maximum allowed size for uploaded files.
10+
; http://php.net/upload-max-filesize
11+
upload_max_filesize = 20M
12+
; Sets max size of post data allowed.
13+
; http://php.net/post-max-size
14+
post_max_size = 20M

0 commit comments

Comments
 (0)