Browse Source

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

QuietShadow 3 years ago
parent
commit
c9e940904f
1 changed files with 3 additions and 1 deletions
  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/;