Browse Source

change default body size of nginx to 10m

master
filesite 2 years ago
parent
commit
3b2ae5598a
  1. 2
      conf/app.php
  2. 2
      conf/nginx.conf
  3. 2
      conf/nginx_machete.conf

2
conf/app.php

@ -64,7 +64,7 @@ $configs = array(
'captcha' => true, //后台登陆是否开启验证码 'captcha' => true, //后台登陆是否开启验证码
'maxUploadFileNumber' => 5, //一次批量上传文件数量 'maxUploadFileNumber' => 5, //一次批量上传文件数量
'maxUploadFileSize' => 20, //单位:Mb 'maxUploadFileSize' => 10, //单位:Mb
'allowedUploadFileTypes' => array( 'allowedUploadFileTypes' => array(
'image/jpeg', 'image/jpeg',
'image/png', 'image/png',

2
conf/nginx.conf

@ -23,6 +23,8 @@ http {
keepalive_timeout 65; keepalive_timeout 65;
types_hash_max_size 4096; types_hash_max_size 4096;
client_max_body_size 10m;
include /etc/nginx/mime.types; include /etc/nginx/mime.types;
default_type application/octet-stream; default_type application/octet-stream;

2
conf/nginx_machete.conf

@ -6,6 +6,8 @@ server {
#charset UTF-8; #charset UTF-8;
#access_log logs/machete.access.log main; #access_log logs/machete.access.log main;
client_max_body_size 10m;
root /var/www/machete/www; root /var/www/machete/www;
index index.php index.html; index index.php index.html;

Loading…
Cancel
Save