-
Notifications
You must be signed in to change notification settings - Fork 27
/
sls.conf
46 lines (39 loc) · 1.45 KB
/
sls.conf
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
srt { #SRT
worker_threads 2;
worker_connections 300;
log_file /logs/error.log;
log_level info;
#stat_post_url http://192.168.31.106:8001/sls/stat;
#stat_post_interval 5;#s
#record_hls_path_prefix /tmp/mov/sls;
#vod file name: /tmp/mov/sls/$listen/$domain_publisher/$app_publisher/$stream_name/vod.m3u8
server {
listen 1935;
latency 200; #ms
domain_player output;
domain_publisher input;
backlog 100; #accept connections at the same time
idle_streams_timeout 60;#s -1: unlimited
#on_event_url http://192.168.31.106:8000/sls/on_event; #?method=on_connect|on_close&role_name=&srt_url=%s
app {
app_player live ;
app_publisher live ;
#record_hls off;#on, off
#record_hls_segment_duration 10; #unit s
#relay {
# type pull;
# mode loop;#loop; hash;
# reconnect_interval 10;
# idle_streams_timeout -1;#s -1: unlimited
# upstreams 127.0.0.1:9090?streamid=live.sls.com/live 192.168.1.100:8080/?streamid=live.test.com/live;
#}
#relay {
# type push;
# mode all; #all; hash
# reconnect_interval 10;
# idle_streams_timeout 10;#s -1: unlimited
# upstreams 192.168.31.106:8080?streamid=uplive.sls.com/live ;
#}
}
}
}