[2.1-2.5] FAM-Core 六个子模块 - Scheduler/Dispatcher/Event-Receiver/Chat-Handler/Member-Manager/Video-Server + DB层 + 配置
This commit is contained in:
36
fam-core/config/config.yaml.example
Normal file
36
fam-core/config/config.yaml.example
Normal file
@@ -0,0 +1,36 @@
|
||||
# FAM-Core 配置文件 (NAS 端)
|
||||
# 复制此文件为 config.yaml 并修改实际值
|
||||
|
||||
server:
|
||||
host: "0.0.0.0"
|
||||
port: 8000
|
||||
|
||||
database:
|
||||
host: "127.0.0.1"
|
||||
port: 3306
|
||||
user: "root"
|
||||
password: ""
|
||||
database: "sentinel_home_ai"
|
||||
|
||||
scheduler:
|
||||
scan_interval: 60 # 扫描间隔(秒)
|
||||
video_dir: "/volume1/surveillance" # 视频录制目录
|
||||
video_extensions: [".mp4", ".mkv", ".avi"]
|
||||
file_stable_seconds: 60 # 文件稳定判定秒数
|
||||
camera_name: "默认摄像头"
|
||||
|
||||
dispatcher:
|
||||
poll_interval: 30 # 轮询间隔(秒)
|
||||
edge_url: "http://100.x.x.20:5000/api/edge/video/analyze"
|
||||
webhook_url: "http://100.x.x.10:8000/api/core/callback/event"
|
||||
max_retries: 3
|
||||
|
||||
video_server:
|
||||
base_url: "http://100.x.x.10:8000/media"
|
||||
token: "your-secret-token-here" # 视频访问 token
|
||||
video_dir: "/volume1/surveillance"
|
||||
|
||||
chat_handler:
|
||||
ollama_url: "http://100.x.x.20:11434/api/generate"
|
||||
model_name: "llava-phi3"
|
||||
timeout: 120
|
||||
Reference in New Issue
Block a user