forked from q191201771/lal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlalserver.conf.json.tmpl
106 lines (106 loc) · 2.52 KB
/
lalserver.conf.json.tmpl
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
{
"# doc of config": "https://pengrl.com/lal/#/ConfigBrief",
"conf_version": "v0.2.8",
"rtmp": {
"enable": true,
"addr": ":1935",
"gop_num": 0,
"merge_write_size": 0,
"add_dummy_audio_enable": false,
"add_dummy_audio_wait_audio_ms": 150
},
"default_http": {
"http_listen_addr": ":8080",
"https_listen_addr": ":4433",
"https_cert_file": "./conf/cert.pem",
"https_key_file": "./conf/key.pem"
},
"httpflv": {
"enable": true,
"enable_https": true,
"url_pattern": "/",
"gop_num": 0
},
"hls": {
"enable": true,
"enable_https": true,
"url_pattern": "/hls/",
"out_path": "./lal_record/hls/",
"fragment_duration_ms": 3000,
"fragment_num": 6,
"delete_threshold": 6,
"cleanup_mode": 1,
"use_memory_as_disk_flag": false
},
"httpts": {
"enable": true,
"enable_https": true,
"url_pattern": "/"
},
"rtsp": {
"enable": true,
"addr": ":5544"
},
"record": {
"enable_flv": false,
"flv_out_path": "./lal_record/flv/",
"enable_mpegts": false,
"mpegts_out_path": "./lal_record/mpegts"
},
"relay_push": {
"enable": false,
"addr_list":[
]
},
"relay_pull": {
"enable": false,
"addr": ""
},
"http_api": {
"enable": true,
"addr": ":8083"
},
"server_id": "1",
"http_notify": {
"enable": false,
"update_interval_sec": 5,
"on_server_start": "http://127.0.0.1:10101/on_server_start",
"on_update": "http://127.0.0.1:10101/on_update",
"on_pub_start": "http://127.0.0.1:10101/on_pub_start",
"on_pub_stop": "http://127.0.0.1:10101/on_pub_stop",
"on_sub_start": "http://127.0.0.1:10101/on_sub_start",
"on_sub_stop": "http://127.0.0.1:10101/on_sub_stop",
"on_rtmp_connect": "http://127.0.0.1:10101/on_rtmp_connect"
},
"simple_auth": {
"key": "q191201771",
"dangerous_lal_secret": "pengrl",
"pub_rtmp_enable": false,
"sub_rtmp_enable": false,
"sub_httpflv_enable": false,
"sub_httpts_enable": false,
"pub_rtsp_enable": false,
"sub_rtsp_enable": false,
"hls_m3u8_enable": false
},
"pprof": {
"enable": true,
"addr": ":8084"
},
"log": {
"level": 1,
"filename": "./logs/lalserver.log",
"is_to_stdout": true,
"is_rotate_daily": true,
"short_file_flag": true,
"timestamp_flag": true,
"timestamp_with_ms_flag": true,
"level_flag": true,
"assert_behavior": 1
},
"debug": {
"log_group_interval_sec": 30,
"log_group_max_group_num": 10,
"log_group_max_sub_num_per_group": 10
}
}