1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

add nginx and used as http server

This commit is contained in:
winlin 2013-11-26 16:45:50 +08:00
parent 5841cfaf76
commit 57ea56970d
6 changed files with 39 additions and 6 deletions

View file

@ -12,7 +12,7 @@ vhost __defaultVhost__ {
enabled on;
gop_cache on;
hls on;
hls_path ./hls;
hls_path ./objs/nginx/html;
}
# the vhost disabled.
vhost removed.vhost.com {
@ -28,8 +28,17 @@ vhost no-hls.vhost.com {
# default: on
hls on;
# the hls output path.
# default: ./hls
hls_path /data/nginx/html/hls;
# the app dir is auto created under the hls_path.
# for example, for rtmp stream:
# rtmp://127.0.0.1/live/livestream
# http://127.0.0.1/live/livestream.m3u8
# where hls_path is /hls, srs will create the following files:
# /hls/live the app dir for all streams.
# /hls/live/livestream.m3u8 the HLS m3u8 file.
# /hls/live/livestream-1.ts the HLS media/ts file.
# in a word, the hls_path is for vhost.
# default: ./objs/nginx/html
hls_path /data/nginx/html;
}
# the vhost with hls disabled.
vhost no-hls.vhost.com {