客户端埋点复用已有下载渠道配置 (#496)
Project CI / AI game creator shell Rust crates (push) Successful in 1m18s
Project CI / AI game creator shell Rust smoke (push) Successful in 1m55s
Project CI / Backend tests (push) Successful in 3m42s
Project CI / Frontend tests (push) Successful in 1m44s
Project CI / Native shell tests (push) Successful in 5m37s
Project CI / AI game creator shell Rust lane 2/2 (push) Successful in 8m24s
Project CI / AI game creator shell Rust lane 1/2 (push) Successful in 8m30s
Project CI / Repository checks (push) Successful in 2m0s
Project CI / AI game creator shell web tests (push) Successful in 1m31s

删除独立埋点 origin 环境变量及配置字段,按 dev/release 渠道校验官方站点。
本地开发、测试及容器的 dev 渠道允许规范回环地址,兼容可变端口。
同步环境变量示例、技术方案和运维说明,补充渠道隔离与身份校验测试。

Reviewed-on: https://git.genarrative.world/git/GenarrativeAI/Genarrative/pulls/496
This commit was merged in pull request #496.
This commit is contained in:
2026-09-23 17:03:17 +08:00
parent e072c66ce9
commit 5bc5328c06
9 changed files with 163 additions and 76 deletions
+4 -5
View File
@@ -5,11 +5,10 @@
GENARRATIVE_ENV=container
GENARRATIVE_API_HOST=0.0.0.0
GENARRATIVE_API_PORT=8082
# 客户端埋点接收绑定的公开 origin,由 API Server 运行时读取;修改后重启服务
# 必须与客户端登录地址一致,不带 /api、路径或尾部斜杠;未配置/非法时上传接口返回 503
# 以下为 compose 默认宿主机入口;更改映射端口或接入域名时同步修改,不填容器内部地址
# dev 使用 https://dev.genarrative.worldrelease 使用 https://www.genarrative.world。
GENARRATIVE_AGC_ANALYTICS_ORIGIN=http://127.0.0.1:18080
# 官网客户端下载与客户端埋点共用部署渠道;修改后重启 API Server
# dev 对应 https://dev.genarrative.worldcontainer + dev 额外允许 loopback 地址及可变映射端口
# release 对应 https://www.genarrative.world,且不接受 loopback 地址;其它渠道不接收埋点
GENARRATIVE_CLIENT_DOWNLOAD_CHANNEL=dev
GENARRATIVE_API_LOG=info,tower_http=info
GENARRATIVE_API_LISTEN_BACKLOG=1024
GENARRATIVE_API_WORKER_THREADS=4