1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-02-13 20:01:56 +00:00
srs/trunk/conf/srt.conf

54 lines
904 B
Text
Raw Normal View History

2020-01-23 03:51:35 +00:00
# SRT config.
2020-01-21 11:20:09 +00:00
listen 1935;
max_connections 1000;
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;
listen 10080;
2020-02-12 12:02:55 +00:00
maxbw 1000000000;
connect_timeout 4000;
2022-04-22 11:46:52 +00:00
peerlatency 0;
recvlatency 0;
2022-05-23 00:44:16 +00:00
latency 0;
tsbpdmode off;
tlpktdrop off;
sendbuf 2000000;
recvbuf 2000000;
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__ {
2022-04-22 11:46:52 +00:00
srt {
enabled on;
srt_to_rtmp on;
}
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;
}