fix(avatar): allow knowledge uploads up to 20MB

This commit is contained in:
stefanfeng
2026-09-04 13:47:46 +08:00
parent b98a2b9507
commit 28553aba15
2 changed files with 6 additions and 2 deletions
+4
View File
@@ -23,6 +23,10 @@ http {
root /usr/share/nginx/html;
index index.html;
# Keep the application gateway aligned with the production edge gateway.
# Without this Nginx rejects ordinary PDF uploads with HTTP 413 before
# FastAPI can return its user-facing file-size validation message.
client_max_body_size 20m;
# SPA 兜底(hash 路由下深链接也可正常加载)
location / {