mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
for #319, refine the config structure.
This commit is contained in:
parent
2b4fa2d73e
commit
0109a74840
2 changed files with 475 additions and 503 deletions
File diff suppressed because it is too large
Load diff
|
@ -51,7 +51,6 @@ vhost vhost.srs.com {
|
||||||
tcp_nodelay on;
|
tcp_nodelay on;
|
||||||
min_latency on;
|
min_latency on;
|
||||||
|
|
||||||
# TODO
|
|
||||||
cluster {
|
cluster {
|
||||||
mode remote;
|
mode remote;
|
||||||
origin 127.0.0.1:1935 localhost:1935;
|
origin 127.0.0.1:1935 localhost:1935;
|
||||||
|
@ -137,6 +136,11 @@ vhost vhost.srs.com {
|
||||||
on_hls_notify http://127.0.0.1:8085/api/v1/hls/[app]/[stream][ts_url];
|
on_hls_notify http://127.0.0.1:8085/api/v1/hls/[app]/[stream][ts_url];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
exec {
|
||||||
|
enabled off;
|
||||||
|
publish ./objs/ffmpeg/bin/ffmpeg -f flv -i [url] -c copy -y ./[stream].flv;
|
||||||
|
}
|
||||||
|
|
||||||
hls {
|
hls {
|
||||||
enabled off;
|
enabled off;
|
||||||
hls_fragment 10;
|
hls_fragment 10;
|
||||||
|
@ -166,11 +170,6 @@ vhost vhost.srs.com {
|
||||||
hds_path ./objs/nginx/html;
|
hds_path ./objs/nginx/html;
|
||||||
}
|
}
|
||||||
|
|
||||||
exec {
|
|
||||||
enabled off;
|
|
||||||
publish ./objs/ffmpeg/bin/ffmpeg -f flv -i [url] -c copy -y ./[stream].flv;
|
|
||||||
}
|
|
||||||
|
|
||||||
dvr {
|
dvr {
|
||||||
enabled off;
|
enabled off;
|
||||||
dvr_plan session;
|
dvr_plan session;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue