gemercheung hai 5 meses
pai
achega
ed48234b83
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      nginx/nginx.conf

+ 2 - 1
nginx/nginx.conf

@@ -44,6 +44,7 @@ server {
     location /admin {
         alias /usr/share/nginx/html/admin; # 子应用的静态文件目录
         index index.html;
+        client_max_body_size        2000m;
         try_files $uri $uri/ /admin/index.html;
     }
 
@@ -66,7 +67,7 @@ server {
         proxy_set_header X-Real-IP $remote_addr;
         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
         proxy_set_header X-Forwarded-Proto $scheme;
-
+        client_max_body_size        2000m;
         # 如果需要支持 WebSocket,添加以下配置
         proxy_http_version 1.1;
         proxy_set_header Upgrade $http_upgrade;