Added support upload file size setting.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2016-06-28 17:18:37 +08:00
parent 243392444f
commit e0b4734dab
2 changed files with 11 additions and 0 deletions

View File

@ -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;

View File

@ -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