2014-03-18 15:38:34 +08:00
|
|
|
# the config for srs to delivery hls
|
2022-07-31 16:26:35 +08:00
|
|
|
# @see https://ossrs.net/lts/zh-cn/docs/v4/doc/sample-hls
|
2014-03-18 15:38:34 +08:00
|
|
|
# @see full.conf for detail config.
|
|
|
|
|
|
2014-03-10 19:13:18 +08:00
|
|
|
listen 1935;
|
2014-07-26 15:34:45 +08:00
|
|
|
max_connections 1000;
|
2021-02-18 11:39:25 +08:00
|
|
|
daemon off;
|
|
|
|
|
srs_log_tank console;
|
2020-01-24 15:35:14 +08:00
|
|
|
http_server {
|
|
|
|
|
enabled on;
|
|
|
|
|
listen 8080;
|
|
|
|
|
dir ./objs/nginx/html;
|
|
|
|
|
}
|
2014-03-10 19:13:18 +08:00
|
|
|
vhost __defaultVhost__ {
|
|
|
|
|
hls {
|
|
|
|
|
enabled on;
|
2020-10-23 20:50:56 +08:00
|
|
|
hls_path ./objs/nginx/html;
|
2014-03-10 19:13:18 +08:00
|
|
|
hls_fragment 10;
|
|
|
|
|
hls_window 60;
|
|
|
|
|
}
|
|
|
|
|
}
|