From ca96bc50bccb3a7722a47afcba25cd7ed9b2c4ac Mon Sep 17 00:00:00 2001 From: chakcy <947105045@qq.com> Date: Fri, 14 Aug 2026 16:27:30 +0800 Subject: [PATCH] =?UTF-8?q?modify:=20=E5=87=AD=E6=8D=AE=E7=8E=AF=E5=A2=83?= =?UTF-8?q?=E5=8F=98=E9=87=8F=E5=8C=96=EF=BC=88VOLC=5FACCESSKEY=20/=20AIBO?= =?UTF-8?q?X=5FMQTT=5FURI=EF=BC=89=EF=BC=8C=E7=A7=BB=E9=99=A4=E7=A1=AC?= =?UTF-8?q?=E7=BC=96=E7=A0=81=E5=AF=86=E9=92=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- workers/aibox_sophon_adapter/config.toml | 7 +++++-- workers/doubao/config.toml | 9 +++++---- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/workers/aibox_sophon_adapter/config.toml b/workers/aibox_sophon_adapter/config.toml index 979b6a5..ddee759 100644 --- a/workers/aibox_sophon_adapter/config.toml +++ b/workers/aibox_sophon_adapter/config.toml @@ -45,7 +45,9 @@ check_interval = 10 # 服务端检查离线设备的间隔(秒) [workers.config.mqtt_forward] enabled = true -uri = "mqtt://admin:Mixc%402021@192.168.1.6:1883" # %40 是 @ 的 URL 编码 +# uri 含凭据,请勿提交到仓库:留空时从环境变量 AIBOX_MQTT_URI 读取 +# 格式 mqtt://user:pass@host:port,密码中特殊字符需 URL 编码(@ → %40) +uri = "" topic = "/board_ping" # 转发目标主题 # ====== 外部 MQTT 订阅(本插件直接订阅外部 Broker,不走网关 Bridge) ====== @@ -60,7 +62,8 @@ topic = "/board_ping" # 转发目标主题 # 支持 {1} {2}... 占位符(填充 topic 通配符捕获值) [workers.config.mqtt_subscribe] enabled = true -uri = "mqtt://admin:Mixc%402021@192.168.1.6:1883" +# uri 含凭据,请勿提交到仓库:留空时从环境变量 AIBOX_MQTT_URI 读取(格式同 mqtt_forward) +uri = "" # 边缘应用控制器:请求-响应协议 # 请求: 发布到 /edge_app_controller,消息 {"command": "query_status", ...} diff --git a/workers/doubao/config.toml b/workers/doubao/config.toml index c8ec78e..ca6c310 100644 --- a/workers/doubao/config.toml +++ b/workers/doubao/config.toml @@ -22,15 +22,16 @@ tags = ["vision", "ai"] # ====== Worker 运行时配置(由 lifespan_setup 传递给 create_workers) ====== [workers.config] -api_key = "ark-b149df84-a057-4ca0-b1a0-82a22c4e3c70-32cde" +# api_key 请勿提交到仓库:留空时从环境变量 VOLC_ACCESSKEY 读取(代码中兜底) +api_key = "" base_url = "https://ark.cn-beijing.volces.com/api/v3" model = "doubao-seed-evolving" # AICC 模式专用配置(按需启用): # is_aicc = true -# api_key = "db04d42e-71e3-4119-abee-12ecc7ef5c34" -# base_url = "https://sd77a0f4ummt3i4vnems0.apigateway-cn-beijing.volceapi.com/api/v3" -# model = "ep-20260721154333-fre3bey" +# api_key = "" # AICC 模式的 api_key 同样经 VOLC_ACCESSKEY 提供,勿入库 +# base_url = "https:///api/v3" +# model = "ep-xxx" # ra_url = "" # 远程证明地址(独立于 base_url 时配置) # ra_service_name = "AICC.ConfidentialInference" # ra_policy_id = "router_policy"