Centralize configuration into config.yaml

- All settings moved to config.yaml
- configs/load.py reads from config.yaml with env var overrides
- Environment variables still work for backward compatibility
- Added pyyaml to requirements
This commit is contained in:
2026-06-10 10:19:41 +08:00
parent 4485cbf702
commit c8fd057129
10 changed files with 123 additions and 40 deletions
+29
View File
@@ -0,0 +1,29 @@
# PoseFit Server Configuration
# ============================
server:
host: "0.0.0.0"
port: 8765
max_ws_size: 10485760 # 10 MB
video:
process_every_n_frames: 1
model:
path: "" # empty = auto-detect pose_models/pose_landmarker_full.task
prefer_gpu: true
dead_bug:
visibility_threshold: 0.45
extension_confirm_frames: 4
reset_confirm_frames: 3
audio:
rep_announcer_enabled: true
rep_announcer_rate: 185
rep_announcer_volume: 1.0
logging:
dir: logs
rotation: "20 MB"
retention: "14 days"