From 7808f8a29934211fd57925316c4c395fe55c5a65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=85=E5=BF=B5?= Date: Wed, 14 Oct 2026 09:52:23 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=89=8B=E5=86=8C=E5=AE=A1=E6=9F=A5?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3=EF=BC=88=E5=89=8D=E7=BC=80=E5=90=8C=E9=94=AE?= =?UTF-8?q?=E7=A9=BA=E9=97=B4=E8=A1=A8=E8=BF=B0/WS=E9=AA=8C=E8=AF=81?= =?UTF-8?q?=E9=A2=84=E6=9C=9F=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - .env PUSH_EXTERNAL_KEY_PREFIX 注释纠错: 两租户前缀与各自老项目完全 相同(同键空间)——这正是切换/回滚不产生重复 UniService 线索的依据; 原稿写成'与老项目隔离'方向反了。两租户之间互异即可, 勿改。 - WS 验证预期收敛为 HTTP/1.1 101(curl 已强制 --http1.1, 不可能是 HTTP/2), 模板与手册 §3.5 同步。 Co-Authored-By: Claude Code --- deploy/openresty-all-kefu.conf.template | 2 +- docs/deploy-production.md | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/deploy/openresty-all-kefu.conf.template b/deploy/openresty-all-kefu.conf.template index 145a359..8fe22c1 100644 --- a/deploy/openresty-all-kefu.conf.template +++ b/deploy/openresty-all-kefu.conf.template @@ -149,5 +149,5 @@ server { # curl -sI https://<租户域名>/static/widget.js | grep -i cache # Cache-Control: no-cache # curl -s -i --http1.1 -H "Connection: Upgrade" -H "Upgrade: websocket" \ # -H "Sec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==" -H "Sec-WebSocket-Version: 13" \ -# https://<租户域名>/ws/chat | head -1 # HTTP/2 101 或 HTTP/1.1 101 +# https://<租户域名>/ws/chat | head -1 # 期待 HTTP/1.1 101 # ============================================================================= diff --git a/docs/deploy-production.md b/docs/deploy-production.md index e00d04b..2c183a7 100644 --- a/docs/deploy-production.md +++ b/docs/deploy-production.md @@ -78,7 +78,9 @@ PUSH_API_URL=https://uniservice.server.hnxinyouhe.com/open/v1/inquiry/push PUSH_API_KEY=<开启时用> PUSH_EXTERNAL_KEY_PREFIX=ai-kefu-jc # 平台兜底前缀;两租户已各自配 # ai-kefu(auto)/ ai-kefu-jc(jiancai), - # 与老项目线索键隔离,勿改! + # 与各自老项目线索键**同键空间**(切换/ + # 回滚不产生重复线索的依据),勿改; + # 两租户之间互异即可 # ⚠ 推送探测 env 回退(已知项,CLAUDE.md Phase 4 清理单 #2):租户 push URL # 空槽时回退 env PUSH_API_URL(默认即真 UniService 生产址)——后台凭据页点 # 「探测」会对真实服务发空批量 POST({"messages": []},按契约应为无操作, @@ -204,7 +206,7 @@ curl -s https://chat2.agent.hnxinyouhe.com/health # {"status":"ok",.. curl -sI https://chat2.agent.hnxinyouhe.com/static/widget.js | grep -i cache curl -s -i --http1.1 -H "Connection: Upgrade" -H "Upgrade: websocket" \ -H "Sec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==" -H "Sec-WebSocket-Version: 13" \ - https://chat2.agent.hnxinyouhe.com/ws/chat | head -1 # 期待 101 + https://chat2.agent.hnxinyouhe.com/ws/chat | head -1 # 期待 HTTP/1.1 101 ``` ## 4. 存量迁移(老 jc / auto 项目 → 本平台)