-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathcustom.conf
More file actions
executable file
·71 lines (63 loc) · 1.97 KB
/
custom.conf
File metadata and controls
executable file
·71 lines (63 loc) · 1.97 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
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
listen 1935;
max_connections 1000;
server_id 79;
# For docker, please use docker logs to manage the logs of SRS.
# See https://docs.docker.com/config/containers/logging/
srs_log_tank console;
daemon off;
http_api {
enabled on;
listen 1985;
}
http_server {
enabled on;
listen 8080;
dir ./objs/nginx/html;
}
rtc_server {
enabled off;
listen 8000;
# @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#config-candidate
candidate $CANDIDATE;
}
vhost __defaultVhost__ {
cluster {
mode remote;
origin origin:1935;
}
hls {
enabled off;
}
play {
gop_cache on;
mw_latency 1800;
queue_length 10;
time_jitter full;
mw_msgs 8;
mw_latency 350;
}
http_hooks {
enabled on;
on_publish http://laravel.test/api/stream/play?shared_secret=9fmtTpLSkNF9j8hSoa0sqBSwru53Mahyvrrro9uo7fr;
on_unpublish http://laravel.test/api/stream/stop?shared_secret=9fmtTpLSkNF9j8hSoa0sqBSwru53Mahyvrrro9uo7fr;
on_play http://laravel.test/api/client/play?shared_secret=9fmtTpLSkNF9j8hSoa0sqBSwru53Mahyvrrro9uo7fr;
on_stop http://laravel.test/api/client/stop?shared_secret=9fmtTpLSkNF9j8hSoa0sqBSwru53Mahyvrrro9uo7fr;
}
http_remux {
enabled on;
mount [vhost]/[app]/[stream].flv;
}
rtc {
enabled off;
}
transcode {
enabled on;
ffmpeg ./objs/ffmpeg/bin/ffmpeg;
engine twitch_live {
enabled off;
vcodec copy;
acodec copy;
output rtmp://live.twitch.tv/app/live_135312837_oVvZ5vTX4zJjkzJ4milHotQySoFGEu;
}
}
}