-
-
Notifications
You must be signed in to change notification settings - Fork 0
Configuration
DNTOF edited this page Aug 24, 2026
·
1 revision
配置文件由 LabAPI 自动生成:LabAPI/configs/<端口>/SLDataAPI/config.yml
键名为 snake_case(LabAPI UnderscoredNamingConvention)。
| 键 | 类型 | 默认 | 说明 |
|---|---|---|---|
| debug | bool | false | Debug 日志 |
| verify_token | string | your_secret_token | 只读接口鉴权 |
| http_port | int | 8081 | HTTP 端口 |
| push_interval_seconds | int | 8 | 快照刷新间隔 |
| control_enabled | bool | false | 控制接口总开关 |
| control_token | string | "" | 控制接口 token(≥8 位四类字符) |
| control_transport | string | http | 传输方式 http|ws 二选一硬互斥 |
| auto_update_check | bool | true | 检查更新 |
| auto_update_install | bool | true | 自动下载替换 DLL |
| file_root | string | "" | 文件端点根目录(空=禁用) |
| log_directory | string | "" | 日志目录(空=自动探测) |
| voice_enabled | bool | false | 语音转发 WS |
| voice_port | ushort | 8082 | 语音端口 |
| voice_record_enabled | bool | false | 录音取证 |
| voice_record_max_rounds | int | 10 | 保留局数 |
| voice_record_dir | string | "" | 录音目录(空=默认) |