2020-01-23 03:51:35 +00:00
|
|
|
# SRT config.
|
2020-01-21 11:20:09 +00:00
|
|
|
|
|
|
|
listen 1935;
|
|
|
|
max_connections 1000;
|
2021-02-18 03:39:25 +00:00
|
|
|
daemon off;
|
|
|
|
srs_log_tank console;
|
2020-01-21 11:20:09 +00:00
|
|
|
|
|
|
|
http_api {
|
|
|
|
enabled on;
|
|
|
|
listen 1985;
|
|
|
|
}
|
2020-02-12 12:02:55 +00:00
|
|
|
|
2020-01-21 11:20:09 +00:00
|
|
|
http_server {
|
|
|
|
enabled on;
|
|
|
|
listen 8080;
|
|
|
|
dir ./objs/nginx/html;
|
|
|
|
}
|
|
|
|
|
|
|
|
srt_server {
|
|
|
|
enabled on;
|
2022-04-15 05:54:24 +00:00
|
|
|
tsbpdmode off;
|
|
|
|
tlpktdrop off;
|
|
|
|
latency 0;
|
|
|
|
sendbuf 2000000;
|
|
|
|
recvbuf 2000000;
|
2020-01-21 11:20:09 +00:00
|
|
|
listen 10080;
|
2020-02-12 12:02:55 +00:00
|
|
|
maxbw 1000000000;
|
|
|
|
connect_timeout 4000;
|
|
|
|
peerlatency 300;
|
|
|
|
recvlatency 300;
|
2020-01-21 11:20:09 +00:00
|
|
|
}
|
|
|
|
|
2020-01-23 10:25:44 +00:00
|
|
|
# @doc https://github.com/ossrs/srs/issues/1147#issuecomment-577607026
|
2020-01-21 11:20:09 +00:00
|
|
|
vhost __defaultVhost__ {
|
2021-05-16 08:14:00 +00:00
|
|
|
http_remux {
|
|
|
|
enabled on;
|
|
|
|
mount [vhost]/[app]/[stream].flv;
|
|
|
|
}
|
2020-01-21 11:20:09 +00:00
|
|
|
}
|
2021-05-16 08:14:00 +00:00
|
|
|
|
|
|
|
# For SRT to use vhost.
|
2020-01-21 11:20:09 +00:00
|
|
|
vhost srs.srt.com.cn {
|
|
|
|
}
|
|
|
|
|
|
|
|
stats {
|
|
|
|
network 0;
|
|
|
|
disk sda sdb xvda xvdb;
|
|
|
|
}
|