modify: 凭据环境变量化(VOLC_ACCESSKEY / AIBOX_MQTT_URI),移除硬编码密钥
This commit is contained in:
@@ -45,7 +45,9 @@ check_interval = 10 # 服务端检查离线设备的间隔(秒)
|
|||||||
|
|
||||||
[workers.config.mqtt_forward]
|
[workers.config.mqtt_forward]
|
||||||
enabled = true
|
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" # 转发目标主题
|
topic = "/board_ping" # 转发目标主题
|
||||||
|
|
||||||
# ====== 外部 MQTT 订阅(本插件直接订阅外部 Broker,不走网关 Bridge) ======
|
# ====== 外部 MQTT 订阅(本插件直接订阅外部 Broker,不走网关 Bridge) ======
|
||||||
@@ -60,7 +62,8 @@ topic = "/board_ping" # 转发目标主题
|
|||||||
# 支持 {1} {2}... 占位符(填充 topic 通配符捕获值)
|
# 支持 {1} {2}... 占位符(填充 topic 通配符捕获值)
|
||||||
[workers.config.mqtt_subscribe]
|
[workers.config.mqtt_subscribe]
|
||||||
enabled = true
|
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", ...}
|
# 请求: 发布到 /edge_app_controller,消息 {"command": "query_status", ...}
|
||||||
|
|||||||
@@ -22,15 +22,16 @@ tags = ["vision", "ai"]
|
|||||||
|
|
||||||
# ====== Worker 运行时配置(由 lifespan_setup 传递给 create_workers) ======
|
# ====== Worker 运行时配置(由 lifespan_setup 传递给 create_workers) ======
|
||||||
[workers.config]
|
[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"
|
base_url = "https://ark.cn-beijing.volces.com/api/v3"
|
||||||
model = "doubao-seed-evolving"
|
model = "doubao-seed-evolving"
|
||||||
|
|
||||||
# AICC 模式专用配置(按需启用):
|
# AICC 模式专用配置(按需启用):
|
||||||
# is_aicc = true
|
# is_aicc = true
|
||||||
# api_key = "db04d42e-71e3-4119-abee-12ecc7ef5c34"
|
# api_key = "" # AICC 模式的 api_key 同样经 VOLC_ACCESSKEY 提供,勿入库
|
||||||
# base_url = "https://sd77a0f4ummt3i4vnems0.apigateway-cn-beijing.volceapi.com/api/v3"
|
# base_url = "https://<gateway-host>/api/v3"
|
||||||
# model = "ep-20260721154333-fre3bey"
|
# model = "ep-xxx"
|
||||||
# ra_url = "" # 远程证明地址(独立于 base_url 时配置)
|
# ra_url = "" # 远程证明地址(独立于 base_url 时配置)
|
||||||
# ra_service_name = "AICC.ConfidentialInference"
|
# ra_service_name = "AICC.ConfidentialInference"
|
||||||
# ra_policy_id = "router_policy"
|
# ra_policy_id = "router_policy"
|
||||||
|
|||||||
Reference in New Issue
Block a user