mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
change forward schema
This commit is contained in:
parent
bef7e20ed9
commit
8cd1c11add
4 changed files with 43 additions and 15 deletions
16
trunk/conf/srs.conf
Executable file → Normal file
16
trunk/conf/srs.conf
Executable file → Normal file
|
@ -535,14 +535,22 @@ vhost same.vhost.forward.vhost.com {
|
|||
# this used to split/forward the current stream for cluster active-standby,
|
||||
# active-active for cdn to build high available fault tolerance system.
|
||||
# format: {ip}:{port} {ip_N}:{port_N}
|
||||
# or specify the vhost by:
|
||||
# format: {ip}:{port}?vhost={vhost} {ip_N}:{port_N}?vhost={vhost}
|
||||
# or specify the vhost by params, @see: change.vhost.forward.vhost.com
|
||||
# if vhost not specified, use the request vhost instead.
|
||||
forward 127.0.0.1:1936 127.0.0.1:1937;
|
||||
}
|
||||
# the vhost which forward publish streams to other vhosts.
|
||||
# TODO: FIXME: change the forward schema with vhost.
|
||||
# [plan] the vhost which forward publish streams to other vhosts.
|
||||
vhost change.vhost.forward.vhost.com {
|
||||
forward 127.0.0.1:1936?vhost=forward2.vhost.com 127.0.0.1:1937?vhost=forward3.vhost.com;
|
||||
forward 127.0.0.1:1936 127.0.0.1:1937 {
|
||||
# specify the vhost to override the vhost in client request.
|
||||
vhost forward2.vhost.com;
|
||||
# specify the refer(pageUrl) to override the refer in client request.
|
||||
refer http://srs/index.html;
|
||||
}
|
||||
forward 127.0.0.1:1938 {
|
||||
vhost forward3.vhost.com;
|
||||
}
|
||||
}
|
||||
|
||||
# the vhost disabled.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue