1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

for #319, refine the config forward.

This commit is contained in:
winlin 2015-08-30 07:59:25 +08:00
parent bc24c0407b
commit 6bd05f9cfc
7 changed files with 119 additions and 45 deletions

View file

@ -44,7 +44,10 @@ vhost demo.srs.com {
enabled on;
gop_cache on;
queue_length 30;
forward 127.0.0.1:19350;
forward {
enabled on;
destination 127.0.0.1:19350;
}
bandcheck {
enabled off;
}

View file

@ -8,5 +8,8 @@ pid ./objs/srs.master.pid;
srs_log_tank file;
srs_log_file ./objs/srs.master.log;
vhost __defaultVhost__ {
forward 127.0.0.1:19350;
forward {
enabled on;
destination 127.0.0.1:19350;
}
}

View file

@ -268,33 +268,6 @@ vhost removed.srs.com {
# @see scope.vhost.srs.com
enabled off;
}
# the vhost for antisuck.
vhost refer.anti_suck.com {
# refer hotlink-denial.
@ -534,13 +507,47 @@ vhost stream.control.com {
# the vhost which forward publish streams.
vhost same.vhost.forward.srs.com {
# forward all publish stream to the specified server.
# 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}
forward 127.0.0.1:1936 127.0.0.1:1937;
# forward stream to other servers.
forward {
# whether enable the forward.
# default: off
enabled on;
# forward all publish stream to the specified server.
# 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}
destination 127.0.0.1:1936 127.0.0.1:1937;
}
}
# the vhost for exec, fork process when publish stream.
vhost exec.srs.com {
# the exec used to fork process when got some event.

View file

@ -62,8 +62,8 @@ vhost vhost.srs.com {
debug_srs_upnode off;
}
# TODO
forward {
enabled off;
destination 127.0.0.1:1936 127.0.0.1:1937;
}