Sfoglia il codice sorgente

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

QuietShadow 3 anni fa
parent
commit
c9e940904f
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  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/;