Files
sentinel-home-ai/fam-core/config/config.yaml
ericwyuan 94a8805045 feat: FAM-Edge chat proxy + PyMySQL migration for FAM-UI + config update
- FAM-Edge: add /api/edge/chat proxy endpoint forwarding to local Ollama
  (Ollama port 11434 not exposed externally, FAM-Edge acts as reverse proxy)
- FAM-Core config: edge_url and ollama_url switched from Tailscale IP to
  Oracle public IP (Tailscale firewall blocking between NAS and Oracle)
- FAM-UI: migrate mysql.connector to PyMySQL (same as FAM-Core)
- FAM-UI: cursor(dictionary=True) replaced with cursorclass=DictCursor
- End-to-end chat verified: FAM-Core -> FAM-Edge proxy -> Ollama -> response
  Answer: 今天没有观察到张三 (no events in DB yet, expected)
2026-08-19 23:59:28 +08:00

40 lines
1.0 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# FAM-Core 配置文件 (NAS 端) - 实际部署配置
# Tailscale: NAS=100.70.234.39, Oracle=100.74.137.126
# 注: Tailscale 防火墙待修复,当前 edge_url 使用 Oracle 公网 IP
# Ollama 未对外暴露chat_handler 通过 FAM-Edge 代理
server:
host: "0.0.0.0"
port: 8000
database:
host: "127.0.0.1"
port: 3306
user: "root"
password: "iLoveJava5!"
database: "sentinel_home_ai"
unix_socket: "/run/mysqld/mysqld10.sock"
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://129.146.203.203:5000/api/edge/video/analyze"
webhook_url: "http://100.70.234.39:8000/api/core/callback/event"
max_retries: 3
video_server:
base_url: "http://100.70.234.39:8000/media"
token: "sentinel-media-2026"
video_dir: "/volume1/surveillance"
chat_handler:
ollama_url: "http://129.146.203.203:5000/api/edge/chat"
model_name: "llava-phi3"
timeout: 120