File tree 1 file changed +46
-0
lines changed
1 file changed +46
-0
lines changed Original file line number Diff line number Diff line change
1
+ srt { #SRT
2
+ worker_threads 2;
3
+ worker_connections 300;
4
+
5
+ log_file /logs/error.log;
6
+ log_level info;
7
+
8
+ #stat_post_url http://192.168.31.106:8001/sls/stat;
9
+ #stat_post_interval 5;#s
10
+
11
+ #record_hls_path_prefix /tmp/mov/sls;
12
+ #vod file name: /tmp/mov/sls/$listen/$domain_publisher/$app_publisher/$stream_name/vod.m3u8
13
+
14
+ server {
15
+ listen 1935;
16
+ latency 200; #ms
17
+
18
+ domain_player output;
19
+ domain_publisher input;
20
+ backlog 100; #accept connections at the same time
21
+ idle_streams_timeout 60;#s -1: unlimited
22
+ #on_event_url http://192.168.31.106:8000/sls/on_event; #?method=on_connect|on_close&role_name=&srt_url=%s
23
+ app {
24
+ app_player live ;
25
+ app_publisher live ;
26
+
27
+ #record_hls off;#on, off
28
+ #record_hls_segment_duration 10; #unit s
29
+
30
+ #relay {
31
+ # type pull;
32
+ # mode loop;#loop; hash;
33
+ # reconnect_interval 10;
34
+ # idle_streams_timeout -1;#s -1: unlimited
35
+ # upstreams 127.0.0.1:9090?streamid=live.sls.com/live 192.168.1.100:8080/?streamid=live.test.com/live;
36
+ #}
37
+ #relay {
38
+ # type push;
39
+ # mode all; #all; hash
40
+ # reconnect_interval 10;
41
+ # idle_streams_timeout 10;#s -1: unlimited
42
+ # upstreams 192.168.31.106:8080?streamid=uplive.sls.com/live ;
43
+ #}
44
+ }
45
+ }
46
+ }
You can’t perform that action at this time.
0 commit comments