胡斌

ver: 2.0+ r3539 8d411235 2017-07-17 16:05:09

add conf directive forward_append_stream_name,to support add ?vhost=xxxx to stream name when forward to cdn
1 -# the config for srs to forward 1 +# the cwrd_stream_name_appendnfig for srs to forward
2 # @see https://github.com/ossrs/srs/wiki/v1_CN_SampleForward 2 # @see https://github.com/ossrs/srs/wiki/v1_CN_SampleForward
3 # @see full.conf for detail config. 3 # @see full.conf for detail config.
4 4
@@ -16,4 +16,6 @@ vhost __defaultVhost__ { @@ -16,4 +16,6 @@ vhost __defaultVhost__ {
16 #if the forward server is same as this server , a origin,try use forward_peer, 16 #if the forward server is same as this server , a origin,try use forward_peer,
17 #the stream pushed from other forward peer will not forward any more in this server 17 #the stream pushed from other forward peer will not forward any more in this server
18 forward_peer 127.0.0.1:1936; 18 forward_peer 127.0.0.1:1936;
  19 +#append the string after start with ? to the stream name when forward to the server
  20 + forward_append_stream_name 127.0.0.1:19350?vhost=newrtmp.xuedianyun.com
19 } 21 }
This file is too large to display.