适配新的文件上传

This commit is contained in:
2025-07-04 18:57:58 +08:00
parent b40d1264f9
commit 96657ed5cf
3 changed files with 25 additions and 2 deletions
+1
View File
@@ -72,6 +72,7 @@ server {
proxy_http_version 1.1; # 推荐使用 HTTP/1.1
proxy_set_header Accept-Encoding ''; # 可选:防止上游压缩导致缓冲,如果后端有gzip等压缩,可能会影响流式输出
# --- SSE 关键配置结束 ---
proxy_set_header X-Original-Prefix '/api';
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;