mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
add hls config
This commit is contained in:
parent
e3e0db9bb1
commit
200a6a6975
6 changed files with 979 additions and 894 deletions
14
trunk/conf/srs.conf
Normal file → Executable file
14
trunk/conf/srs.conf
Normal file → Executable file
|
@ -9,6 +9,10 @@ chunk_size 65000;
|
|||
# vhost list, the __defaultVhost__ is the default vhost
|
||||
# for which cannot identify the required vhost.
|
||||
vhost __defaultVhost__ {
|
||||
enabled on;
|
||||
gop_cache on;
|
||||
hls on;
|
||||
hls_path ./hls;
|
||||
}
|
||||
# the vhost disabled.
|
||||
vhost removed.vhost.com {
|
||||
|
@ -17,6 +21,16 @@ vhost removed.vhost.com {
|
|||
# default: on
|
||||
enabled off;
|
||||
}
|
||||
# the vhost with hls specified.
|
||||
vhost no-hls.vhost.com {
|
||||
# whether the hls is enabled.
|
||||
# if off, donot write hls(ts and m3u8) when publish.
|
||||
# default: on
|
||||
hls on;
|
||||
# the hls output path.
|
||||
# default: ./hls
|
||||
hls_path /data/nginx/html/hls;
|
||||
}
|
||||
# the vhost with hls disabled.
|
||||
vhost no-hls.vhost.com {
|
||||
# whether the hls is enabled.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue