From c7f6eef4ac1ccf78c45804bea3441802400a9821 Mon Sep 17 00:00:00 2001 From: winlin Date: Thu, 23 Jan 2020 11:51:35 +0800 Subject: [PATCH] Refine config file, link to issue. --- trunk/conf/srt.conf | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/trunk/conf/srt.conf b/trunk/conf/srt.conf index 35614f2aa..9dc1e564e 100644 --- a/trunk/conf/srt.conf +++ b/trunk/conf/srt.conf @@ -1,10 +1,8 @@ -# main config for srs. -# @see full.conf for detail config. +# SRT config. listen 1935; max_connections 1000; -srs_log_tank file; -srs_log_file ./objs/srs.log; +srs_log_tank console; daemon off; http_api { @@ -22,22 +20,12 @@ srt_server { listen 10080; } +# @doc https://github.com/ossrs/srs/issues/1147#issuecomment-577492117 vhost __defaultVhost__ { } - 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 { network 0; disk sda sdb xvda xvdb;