1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-02-13 11:51:57 +00:00
srs/trunk/conf/srs.conf

62 lines
2.2 KiB
Text
Raw Normal View History

2013-11-09 12:56:35 +00:00
# the listen ports, split by space.
2013-11-16 04:54:48 +00:00
listen 1937;
2013-11-09 12:56:35 +00:00
# the default chunk size is 128, max is 65536,
# some client does not support chunk size change,
# however, most clients supports it and it can improve
# performance about 10%.
# if not specified, set to 4096.
chunk_size 65000;
2013-11-09 12:56:35 +00:00
# vhost list, the __defaultVhost__ is the default vhost
# for which cannot identify the required vhost.
2013-11-02 09:55:59 +00:00
vhost __defaultVhost__ {
}
2013-11-09 12:56:35 +00:00
# the vhost disabled.
2013-11-04 14:55:19 +00:00
vhost removed.vhost.com {
# whether the vhost is enabled.
# if off, all request access denied.
# default: on
enabled off;
}
2013-11-09 12:56:35 +00:00
# the vhost for min delay, donot cache any stream.
2013-11-04 14:55:19 +00:00
vhost min.delay.com {
# whether cache the last gop.
# if on, cache the last gop and dispatch to client,
# to enable fast startup for client, client play immediately.
# if off, send the latest media data to client,
# client need to wait for the next Iframe to decode and show the video.
# set to off if requires min delay;
# set to on if requires client fast startup.
# default: on
2013-11-04 14:42:03 +00:00
gop_cache off;
}
2013-11-09 12:56:35 +00:00
# the vhost for antisuck.
2013-11-04 14:55:19 +00:00
vhost refer.anti_suck.com {
# the common refer for play and publish.
# if the page url of client not in the refer, access denied.
# if not specified this field, allow all.
# default: not specified.
refer github.com github.io;
# refer for publish clients specified.
# the common refer is not overrided by this.
# if not specified this field, allow all.
# default: not specified.
refer_publish github.com github.io;
# refer for play clients specified.
# the common refer is not overrided by this.
# if not specified this field, allow all.
# 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.
pithy_print {
# shared print interval for all publish clients, in milliseconds.
# if not specified, set to 1100.
publish 2000;
# shared print interval for all play clients, in milliseconds.
# if not specified, set to 1300.
play 3000;
}
2013-11-04 14:42:03 +00:00