Merge pull request #123 from appleboy/patch-6

Added support upload file size setting.
This commit is contained in:
Mahmoud Zalt 2016-06-28 16:06:29 +03:00 committed by GitHub
commit 65078505c1
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