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

Refine config file, link to issue.

This commit is contained in:
winlin 2020-01-23 11:51:35 +08:00
parent 03ef01c635
commit c7f6eef4ac

View file

@ -1,10 +1,8 @@
# main config for srs. # SRT config.
# @see full.conf for detail config.
listen 1935; listen 1935;
max_connections 1000; max_connections 1000;
srs_log_tank file; srs_log_tank console;
srs_log_file ./objs/srs.log;
daemon off; daemon off;
http_api { http_api {
@ -22,22 +20,12 @@ srt_server {
listen 10080; listen 10080;
} }
# @doc https://github.com/ossrs/srs/issues/1147#issuecomment-577492117
vhost __defaultVhost__ { vhost __defaultVhost__ {
} }
vhost srs.srt.com.cn { vhost srs.srt.com.cn {
} }
# 无vhost配置(__defaultVhost__), 示例:
# srt推流地址srt://127.0.0.1:10080?streamid=live/test1?m=push
# srt拉流地址srt://127.0.0.1:10080?streamid=live/test1?m=pull
# rtmp拉流地址rtmp://127.0.0.1/live/test1
# 带有vhost配置, 示例:
# srt推流地址srt://127.0.0.1:10080?streamid=srs.srt.com.cn/live/test1?m=push
# srt拉流地址srt://127.0.0.1:10080?streamid=srs.srt.com.cn/live/test1?m=pull
# rtmp拉流地址rtmp://127.0.0.1/live?vhost=srs.srt.com.cn/test1
stats { stats {
network 0; network 0;
disk sda sdb xvda xvdb; disk sda sdb xvda xvdb;