From 03053c356e7baa960c1e0bfa5a3bbcad00e86210 Mon Sep 17 00:00:00 2001 From: ddCat <2695092045@qq.com> Date: Wed, 19 Aug 2026 23:44:51 +0800 Subject: [PATCH] =?UTF-8?q?fix(deploy):=20=E7=BA=BF=E4=B8=8A=E8=B7=AF?= =?UTF-8?q?=E7=94=B1=20-=20=E4=BF=AE=E5=A4=8D=20canvas=20=E8=AE=BF?= =?UTF-8?q?=E9=97=AE=E8=B7=B3=E8=BD=AC=E5=88=B0=E5=AE=B9=E5=99=A8=E7=AB=AF?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 1 + nginx.conf | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 31ccfa696..049e55823 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ ## v1.1.3 +- 修复 `/canvas` 路由与静态模型目录同名导致的容器端口跳转,确保域名访问保持原有 HTTPS 地址。 - 修复系统文本模型中转先读取完整响应才返回的问题,恢复 OpenAI Responses、Chat Completions 与 Gemini 的 SSE 增量输出,并补齐多层 Nginx 的禁缓冲信号传递。 - 火山方舟 Seedream 图片生成显式关闭“AI 生成”水印,并要求生成响应直接返回 Base64 后写入服务器或对象存储,避免为持久化结果再次请求方舟 CDN;中转服务忽略返回格式时仍保留 URL 下载兼容。 - 项目开源协议由 AGPL-3.0 调整为 MIT,保留上游及项目贡献者版权声明。 diff --git a/nginx.conf b/nginx.conf index 653f2ab80..992ca6e55 100644 --- a/nginx.conf +++ b/nginx.conf @@ -108,6 +108,16 @@ server { try_files $uri $uri/ /index.html; } + # /canvas 同时是 React 路由和静态模型资源目录;精确命中路由时必须优先回退到 SPA, + # 否则 try_files 会把它当作目录并生成带容器端口的 301。 + location = /canvas { + try_files /index.html =404; + } + + location = /canvas/ { + try_files /index.html =404; + } + location / { try_files $uri $uri/ /index.html; }