forward.master.conf
994 字节
# the cwrd_stream_name_appendnfig for srs to forward
# @see https://github.com/ossrs/srs/wiki/v1_CN_SampleForward
# @see full.conf for detail config.
listen 1935;
max_connections 1000;
pid ./objs/srs.master.pid;
daemon off;
srs_log_tank console;
vhost __defaultVhost__ {
forward 127.0.0.1:19350;
#select on of the listed servers in turn to forward,not all of them
forward_in_turn 127.0.0.1:19351 127.0.0.1:19352;
#if the forward destination server is not srs,such as some rtmp server in cdn,write the address of them below
forward_server_other 127.0.0.1:19350;
#if the forward server is same as this server , a origin,try use forward_peer,
#the stream pushed from other forward peer will not forward any more in this server
forward_peer 127.0.0.1:1936;
#append the string after start with ? to the stream name when forward to the server
forward_append_stream_name 127.0.0.1:19350?vhost=newrtmp.xuedianyun.com
}