2015-04-03 02:56:56 +00:00
|
|
|
# the config for srs origin-edge cluster
|
2022-07-31 08:26:35 +00:00
|
|
|
# @see https://ossrs.net/lts/zh-cn/docs/v4/doc/edge#transform-vhost
|
2015-04-03 02:56:56 +00:00
|
|
|
# @see full.conf for detail config.
|
|
|
|
|
|
|
|
listen 1935;
|
|
|
|
max_connections 1000;
|
2017-02-09 06:17:36 +00:00
|
|
|
daemon off;
|
|
|
|
srs_log_tank console;
|
2015-04-03 02:56:56 +00:00
|
|
|
vhost __defaultVhost__ {
|
|
|
|
}
|
|
|
|
vhost source.srs.com {
|
|
|
|
ingest livestream {
|
|
|
|
enabled on;
|
|
|
|
input {
|
|
|
|
type file;
|
|
|
|
url ./doc/source.200kbps.768x320.flv;
|
|
|
|
}
|
|
|
|
ffmpeg ./objs/ffmpeg/bin/ffmpeg;
|
|
|
|
engine {
|
|
|
|
enabled off;
|
2022-08-31 05:30:13 +00:00
|
|
|
output rtmp://127.0.0.1:[port]/live/livestream?vhost=[vhost];
|
2015-04-03 02:56:56 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
vhost transform.srs.edge.com {
|
2015-09-11 00:21:06 +00:00
|
|
|
cluster {
|
|
|
|
mode remote;
|
|
|
|
origin 127.0.0.1:1935;
|
|
|
|
vhost source.srs.com;
|
|
|
|
}
|
2015-11-11 02:37:50 +00:00
|
|
|
}
|