-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path2a
More file actions
31 lines (27 loc) · 1.14 KB
/
2a
File metadata and controls
31 lines (27 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# 日志级别 (可选: debug, info, warn, error)
logLevel: info
# 可选的全局设置
api: yes # 启用 HTTP API (默认在 9997 端口)
metrics: yes # 启用 Prometheus 指标 (默认在 9998 端口)
pprof: no # 启用 Go 语言性能分析工具
# ----------------------------------------------------
# 协议相关配置 (在这里可以启用/禁用/修改各种协议的参数)
# ----------------------------------------------------
rtmp: yes # 启用 RTMP 和 RTMPS
rtsp: yes # 启用 RTSP 和 RTSPS
hls: yes # 启用 HLS
webrtc: yes # 启用 WebRTC
# ----------------------------------------------------
# 路径配置 (这是最核心、最强大的部分)
# ----------------------------------------------------
# paths:
# all_users 是一个特殊的名称,代表所有路径的默认配置
# all_users:
paths:
stream:
source: publisher
sourceOnDemand: yes
# 默认情况下,所有路径都可以自由读写,无需认证
# 在这里可以定义具名的路径,实现特定规则
# path my_camera:
# ... 针对 my_camera 这条流的特殊配置 ...