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

merge upstream

This commit is contained in:
wenjiegit 2013-12-24 10:49:17 +08:00
commit 00fb37a831
41 changed files with 2443 additions and 271 deletions

View file

@ -28,10 +28,14 @@ vhost __defaultVhost__ {
# for which cannot identify the required vhost.
# for default demo.
vhost demo.srs.com {
chunk_size 4096;
enabled on;
gop_cache on;
queue_length 30;
forward 127.0.0.1:19350;
bandcheck {
enabled off;
}
hls {
enabled on;
hls_path ./objs/nginx/html;
@ -140,6 +144,14 @@ vhost players_pub {
hls_window 30;
}
}
# rtmp only, no hls, for chat(low latecy)
vhost players_pub_rtmp {
gop_cache off;
hls {
enabled off;
}
}
# for development
vhost dev {
chunk_size 65000;
@ -201,16 +213,38 @@ vhost dev {
}
}
# vhost for bandwidth check
# generally, the bandcheck vhost must be: bandcheck.srs.com,
# or need to modify the vhost of client.
vhost bandcheck.srs.com {
chunk_size 65000;
enabled on;
# vhost for band width check
bandcheck{
enabled on;
key test kate;
interval 5;
limit_kbps 4000;
}
enabled on;
chunk_size 65000;
# bandwidth check config.
bandcheck {
# whether support bandwidth check,
# default: off.
enabled on;
# the key for server to valid,
# if invalid key, server disconnect and abort the bandwidth check.
key 35c9b402c12a7246868752e2878f7e0e;
# the interval in seconds for bandwidth check,
# server donot allow new test request.
# default: 30
interval 30;
# the max available check bandwidth in kbps.
# to avoid attack of bandwidth check.
# default: 1000
limit_kbps 4000;
}
}
# set the chunk size of vhost.
vhost chunksize.vhost.com {
# the default chunk size is 128, max is 65536,
# some client does not support chunk size change,
# vhost chunk size will override the global value.
# default: global chunk size.
chunk_size 128;
}
# the http hook callback vhost, srs will invoke the hooks for specified events.
@ -304,6 +338,7 @@ vhost hooks.callback.vhost.com {
on_stop http://127.0.0.1:8085/api/v1/sessions http://localhost:8085/api/v1/sessions;
}
}
# the mirror filter of ffmpeg, @see: http://ffmpeg.org/ffmpeg-filters.html#Filtering-Introduction
vhost mirror.transcode.vhost.com {
transcode {
@ -683,6 +718,7 @@ vhost stream.transcode.vhost.com {
}
}
}
# the vhost which forward publish streams.
vhost same.vhost.forward.vhost.com {
# forward all publish stream to the specified server.
@ -698,6 +734,7 @@ vhost same.vhost.forward.vhost.com {
vhost change.vhost.forward.vhost.com {
forward 127.0.0.1:1936?vhost=forward2.vhost.com 127.0.0.1:1937?vhost=forward3.vhost.com;
}
# the vhost disabled.
vhost removed.vhost.com {
# whether the vhost is enabled.
@ -705,6 +742,7 @@ vhost removed.vhost.com {
# default: on
enabled off;
}
# the vhost with hls specified.
vhost with-hls.vhost.com {
hls {
@ -741,6 +779,7 @@ vhost no-hls.vhost.com {
enabled off;
}
}
# the vhost for min delay, donot cache any stream.
vhost min.delay.com {
# whether cache the last gop.
@ -758,6 +797,7 @@ vhost min.delay.com {
# default: 30
queue_length 10;
}
# the vhost for antisuck.
vhost refer.anti_suck.com {
# the common refer for play and publish.
@ -776,6 +816,7 @@ vhost refer.anti_suck.com {
# default: not specified.
refer_play github.com github.io;
}
# config for the pithy print,
# which always print constant message specified by interval,
# whatever the clients in concurrency.