modify: bangze
This commit is contained in:
@@ -39,9 +39,9 @@ data_dir = "./data"
|
|||||||
mediamtx_addr = "rtsp://127.0.0.1/channel" # MediaMTX 地址
|
mediamtx_addr = "rtsp://127.0.0.1/channel" # MediaMTX 地址
|
||||||
link_path = "/data/bm-app" # 软链接路径
|
link_path = "/data/bm-app" # 软链接路径
|
||||||
|
|
||||||
[workers.config.database]
|
# [workers.config.database]
|
||||||
type = "postgresql"
|
# type = "postgresql"
|
||||||
url = "postgresql+asyncpg://postgres:postgres@localhost:5432/aibox_sophon_adapter"
|
# url = "postgresql+asyncpg://postgres:postgres@localhost:5432/aibox_sophon_adapter"
|
||||||
|
|
||||||
[workers.config.heartbeat]
|
[workers.config.heartbeat]
|
||||||
interval = 5 # 设备上报间隔(秒)
|
interval = 5 # 设备上报间隔(秒)
|
||||||
@@ -49,7 +49,8 @@ timeout = 15 # 超时阈值(秒),超过此时间未收到心跳
|
|||||||
check_interval = 10 # 服务端检查离线设备的间隔(秒)
|
check_interval = 10 # 服务端检查离线设备的间隔(秒)
|
||||||
|
|
||||||
[workers.config.mqtt_forward]
|
[workers.config.mqtt_forward]
|
||||||
enabled = true
|
# enabled = true
|
||||||
|
enabled = false
|
||||||
# uri 含凭据,请勿提交到仓库:留空时从环境变量 AIBOX_MQTT_URI 读取
|
# uri 含凭据,请勿提交到仓库:留空时从环境变量 AIBOX_MQTT_URI 读取
|
||||||
# 格式 mqtt://user:pass@host:port,密码中特殊字符需 URL 编码(@ → %40)
|
# 格式 mqtt://user:pass@host:port,密码中特殊字符需 URL 编码(@ → %40)
|
||||||
uri = ""
|
uri = ""
|
||||||
@@ -66,7 +67,8 @@ topic = "/board_ping" # 转发目标主题
|
|||||||
# reply_topic: 可选,回复主题;处理后返回值(非 None)发布到该主题
|
# reply_topic: 可选,回复主题;处理后返回值(非 None)发布到该主题
|
||||||
# 支持 {1} {2}... 占位符(填充 topic 通配符捕获值)
|
# 支持 {1} {2}... 占位符(填充 topic 通配符捕获值)
|
||||||
[workers.config.mqtt_subscribe]
|
[workers.config.mqtt_subscribe]
|
||||||
enabled = true
|
# enabled = true
|
||||||
|
enabled = false
|
||||||
# uri 含凭据,请勿提交到仓库:留空时从环境变量 AIBOX_MQTT_URI 读取(格式同 mqtt_forward)
|
# uri 含凭据,请勿提交到仓库:留空时从环境变量 AIBOX_MQTT_URI 读取(格式同 mqtt_forward)
|
||||||
uri = ""
|
uri = ""
|
||||||
|
|
||||||
@@ -89,7 +91,8 @@ uri = ""
|
|||||||
# timeout=30,
|
# timeout=30,
|
||||||
# )
|
# )
|
||||||
[workers.config.internal_mqtt]
|
[workers.config.internal_mqtt]
|
||||||
enabled = true
|
# enabled = true
|
||||||
|
enabled = false
|
||||||
uri = "mqtt://127.0.0.1:1883"
|
uri = "mqtt://127.0.0.1:1883"
|
||||||
|
|
||||||
# 内部请求-响应主题(edge_app_controller 的 alg_media_fetch 命令使用)。
|
# 内部请求-响应主题(edge_app_controller 的 alg_media_fetch 命令使用)。
|
||||||
@@ -113,8 +116,8 @@ volume = 50
|
|||||||
tts = {}
|
tts = {}
|
||||||
|
|
||||||
[workers.config.alarm_forward]
|
[workers.config.alarm_forward]
|
||||||
# enabled = false # 是否启用告警转发到外部平台
|
enabled = false # 是否启用告警转发到外部平台
|
||||||
enabled = true # 是否启用告警转发到外部平台
|
# enabled = true # 是否启用告警转发到外部平台
|
||||||
# url = "http://dg.datagoo.cn:60014/open-api/event-alarm/receive" # 外部告警接收地址
|
# url = "http://dg.datagoo.cn:60014/open-api/event-alarm/receive" # 外部告警接收地址
|
||||||
url = "http://192.168.1.6:48092/open-api/event-alarm/receive" # 外部告警接收地址
|
url = "http://192.168.1.6:48092/open-api/event-alarm/receive" # 外部告警接收地址
|
||||||
# video_upload_url = "http://dg.datagoo.cn:60014/open-api/event-alarm/receiveVideoUpload" # 外部视频上传地址
|
# video_upload_url = "http://dg.datagoo.cn:60014/open-api/event-alarm/receiveVideoUpload" # 外部视频上传地址
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ type = "auth"
|
|||||||
module = "plugins.auth"
|
module = "plugins.auth"
|
||||||
factory = "create_workers"
|
factory = "create_workers"
|
||||||
cleanup = "cleanup"
|
cleanup = "cleanup"
|
||||||
count = 3
|
count = 0
|
||||||
|
|
||||||
[worker]
|
[worker]
|
||||||
name = "auth"
|
name = "auth"
|
||||||
@@ -18,4 +18,4 @@ router_prefix = "/auth"
|
|||||||
tags = ["auth"]
|
tags = ["auth"]
|
||||||
|
|
||||||
# ====== Worker 运行时配置(由 lifespan_setup 传递给 create_workers) ======
|
# ====== Worker 运行时配置(由 lifespan_setup 传递给 create_workers) ======
|
||||||
[workers.config]
|
[workers.config]
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ type = "auth_oauth"
|
|||||||
module = "plugins.auth_oauth"
|
module = "plugins.auth_oauth"
|
||||||
factory = "create_workers"
|
factory = "create_workers"
|
||||||
cleanup = "cleanup"
|
cleanup = "cleanup"
|
||||||
count = 1
|
count = 0
|
||||||
# 身份源插件持有签名密钥的使用方(issue_token),走 inline 与网关同信任域;
|
# 身份源插件持有签名密钥的使用方(issue_token),走 inline 与网关同信任域;
|
||||||
# external 部署前需先解决密钥下发问题(见插件 README 安全说明)
|
# external 部署前需先解决密钥下发问题(见插件 README 安全说明)
|
||||||
load_mode = "inline"
|
load_mode = "inline"
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ type = "doubao"
|
|||||||
module = "plugins.doubao"
|
module = "plugins.doubao"
|
||||||
factory = "create_workers"
|
factory = "create_workers"
|
||||||
cleanup = "cleanup"
|
cleanup = "cleanup"
|
||||||
count = 3
|
count = 0
|
||||||
|
|
||||||
[worker]
|
[worker]
|
||||||
name = "doubao"
|
name = "doubao"
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ type = "example"
|
|||||||
module = "plugins.example"
|
module = "plugins.example"
|
||||||
factory = "create_workers"
|
factory = "create_workers"
|
||||||
cleanup = "cleanup"
|
cleanup = "cleanup"
|
||||||
count = 3
|
count = 0
|
||||||
# 运行模式(按插件粒度,两种模式可同时存在):
|
# 运行模式(按插件粒度,两种模式可同时存在):
|
||||||
# "inline"(默认)= 网关进程内加载
|
# "inline"(默认)= 网关进程内加载
|
||||||
# "external" = 独立进程运行(Docker/K8s 编排: uv run worker_serve --type example),
|
# "external" = 独立进程运行(Docker/K8s 编排: uv run worker_serve --type example),
|
||||||
|
|||||||
Reference in New Issue
Block a user