modify: bangze
This commit is contained in:
@@ -39,9 +39,9 @@ data_dir = "./data"
|
||||
mediamtx_addr = "rtsp://127.0.0.1/channel" # MediaMTX 地址
|
||||
link_path = "/data/bm-app" # 软链接路径
|
||||
|
||||
[workers.config.database]
|
||||
type = "postgresql"
|
||||
url = "postgresql+asyncpg://postgres:postgres@localhost:5432/aibox_sophon_adapter"
|
||||
# [workers.config.database]
|
||||
# type = "postgresql"
|
||||
# url = "postgresql+asyncpg://postgres:postgres@localhost:5432/aibox_sophon_adapter"
|
||||
|
||||
[workers.config.heartbeat]
|
||||
interval = 5 # 设备上报间隔(秒)
|
||||
@@ -49,7 +49,8 @@ timeout = 15 # 超时阈值(秒),超过此时间未收到心跳
|
||||
check_interval = 10 # 服务端检查离线设备的间隔(秒)
|
||||
|
||||
[workers.config.mqtt_forward]
|
||||
enabled = true
|
||||
# enabled = true
|
||||
enabled = false
|
||||
# uri 含凭据,请勿提交到仓库:留空时从环境变量 AIBOX_MQTT_URI 读取
|
||||
# 格式 mqtt://user:pass@host:port,密码中特殊字符需 URL 编码(@ → %40)
|
||||
uri = ""
|
||||
@@ -66,7 +67,8 @@ topic = "/board_ping" # 转发目标主题
|
||||
# reply_topic: 可选,回复主题;处理后返回值(非 None)发布到该主题
|
||||
# 支持 {1} {2}... 占位符(填充 topic 通配符捕获值)
|
||||
[workers.config.mqtt_subscribe]
|
||||
enabled = true
|
||||
# enabled = true
|
||||
enabled = false
|
||||
# uri 含凭据,请勿提交到仓库:留空时从环境变量 AIBOX_MQTT_URI 读取(格式同 mqtt_forward)
|
||||
uri = ""
|
||||
|
||||
@@ -89,7 +91,8 @@ uri = ""
|
||||
# timeout=30,
|
||||
# )
|
||||
[workers.config.internal_mqtt]
|
||||
enabled = true
|
||||
# enabled = true
|
||||
enabled = false
|
||||
uri = "mqtt://127.0.0.1:1883"
|
||||
|
||||
# 内部请求-响应主题(edge_app_controller 的 alg_media_fetch 命令使用)。
|
||||
@@ -113,8 +116,8 @@ volume = 50
|
||||
tts = {}
|
||||
|
||||
[workers.config.alarm_forward]
|
||||
# enabled = false # 是否启用告警转发到外部平台
|
||||
enabled = true # 是否启用告警转发到外部平台
|
||||
enabled = false # 是否启用告警转发到外部平台
|
||||
# enabled = true # 是否启用告警转发到外部平台
|
||||
# url = "http://dg.datagoo.cn:60014/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" # 外部视频上传地址
|
||||
|
||||
Reference in New Issue
Block a user