mirror of
https://github.com/ossrs/srs.git
synced 2025-02-15 04:42:04 +00:00
Live: Refine edge cluster to support FLV.
This commit is contained in:
parent
5e12fceaba
commit
c574ab6465
2 changed files with 19 additions and 1 deletions
|
@ -7,9 +7,18 @@ max_connections 1000;
|
||||||
pid objs/edge.pid;
|
pid objs/edge.pid;
|
||||||
daemon off;
|
daemon off;
|
||||||
srs_log_tank console;
|
srs_log_tank console;
|
||||||
|
http_server {
|
||||||
|
enabled on;
|
||||||
|
listen 8080;
|
||||||
|
dir ./objs/nginx/html;
|
||||||
|
}
|
||||||
vhost __defaultVhost__ {
|
vhost __defaultVhost__ {
|
||||||
cluster {
|
cluster {
|
||||||
mode remote;
|
mode remote;
|
||||||
origin 127.0.0.1:19350;
|
origin 127.0.0.1:19350;
|
||||||
}
|
}
|
||||||
|
http_remux {
|
||||||
|
enabled on;
|
||||||
|
mount [vhost]/[app]/[stream].flv;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,5 +7,14 @@ max_connections 1000;
|
||||||
pid ./objs/origin.pid;
|
pid ./objs/origin.pid;
|
||||||
daemon off;
|
daemon off;
|
||||||
srs_log_tank console;
|
srs_log_tank console;
|
||||||
vhost __defaultVhost__ {
|
http_server {
|
||||||
|
enabled on;
|
||||||
|
listen 8081;
|
||||||
|
dir ./objs/nginx/html;
|
||||||
|
}
|
||||||
|
vhost __defaultVhost__ {
|
||||||
|
http_remux {
|
||||||
|
enabled on;
|
||||||
|
mount [vhost]/[app]/[stream].flv;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue