配置从config.yaml中读取
This commit is contained in:
32
config.yaml
32
config.yaml
@@ -1,3 +1,35 @@
|
||||
rtsp_enabled: false
|
||||
|
||||
# 应用配置
|
||||
app:
|
||||
debug: false
|
||||
log_level: INFO
|
||||
log_file: "log/app.log"
|
||||
|
||||
# 资源文件夹配置
|
||||
face:
|
||||
face_register_image_dir: "D:/ruoyi/uploadPath/face"
|
||||
video_dir: "D:/ruoyi/uploadPath/video"
|
||||
face_cal_feature_timeout_hours: 10
|
||||
face_model_version: 0
|
||||
face_use_gpu: true
|
||||
face_use_npu: false
|
||||
sur_config_type_face: 0
|
||||
sur_config_scope_global: 0
|
||||
|
||||
# 数据库配置
|
||||
database:
|
||||
host: localhost
|
||||
port: 5432
|
||||
user: postgres
|
||||
password: yipai123
|
||||
name: pmms
|
||||
schema: public
|
||||
pool_size: 10
|
||||
max_overflow: 20
|
||||
pool_recycle: 3600
|
||||
echo: false
|
||||
|
||||
cameras:
|
||||
- id: 1
|
||||
index: testindexcode
|
||||
|
||||
Reference in New Issue
Block a user