From eb573097248046d4c4b6c65dc5e81ba473b74f08 Mon Sep 17 00:00:00 2001 From: Developer Date: Wed, 3 Dec 2025 08:04:26 -0800 Subject: [PATCH] =?UTF-8?q?fix(api-gateway):=20=E5=A2=9E=E5=8A=A0=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E4=B8=8A=E4=BC=A0=E5=A4=A7=E5=B0=8F=E9=99=90=E5=88=B6?= =?UTF-8?q?=E5=88=B0=20500MB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Kong request-size-limiting: 50MB -> 500MB - Nginx client_max_body_size: 100M -> 500M 用于支持大型 APK/IPA 文件上传 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- backend/api-gateway/kong.yml | 4 ++-- backend/api-gateway/nginx/rwaapi.szaiai.com.conf | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/api-gateway/kong.yml b/backend/api-gateway/kong.yml index dbeb26d8..b77f249b 100644 --- a/backend/api-gateway/kong.yml +++ b/backend/api-gateway/kong.yml @@ -221,10 +221,10 @@ plugins: path: /tmp/kong-access.log reopen: true - # 请求/响应大小限制 + # 请求/响应大小限制 (500MB 用于 APK/IPA 上传) - name: request-size-limiting config: - allowed_payload_size: 50 + allowed_payload_size: 500 size_unit: megabytes # Prometheus 监控指标 diff --git a/backend/api-gateway/nginx/rwaapi.szaiai.com.conf b/backend/api-gateway/nginx/rwaapi.szaiai.com.conf index 6663b2a3..9dfdce18 100644 --- a/backend/api-gateway/nginx/rwaapi.szaiai.com.conf +++ b/backend/api-gateway/nginx/rwaapi.szaiai.com.conf @@ -61,8 +61,8 @@ server { add_header X-XSS-Protection "1; mode=block" always; add_header Referrer-Policy "strict-origin-when-cross-origin" always; - # 客户端请求大小限制 (用于文件上传) - client_max_body_size 100M; + # 客户端请求大小限制 (500MB 用于 APK/IPA 上传) + client_max_body_size 500M; # 反向代理到 Kong API Gateway location / {