浏览代码

update----nginx请求缓存区大小改为8M

QuietShadow 3 年之前
父节点
当前提交
c9e940904f
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      nginx.conf

+ 3 - 1
nginx.conf

@@ -33,7 +33,9 @@ http {
 
     add_header Access-Control-Allow-Origin *;
     add_header Access-Control-Allow-Headers X-Requested-With;
-    add_header Access-Control-Allow-Methods GET,POST,OPTIONS;
+    add_header Access-Control-Allow-Methods GET,POST,OPTIONS;
+    client_max_body_size 8M;
+    client_body_buffer_size 128k;
 
     server {
         root /usr/share/nginx/html/;