2014-03-18 07:38:34 +00:00
|
|
|
# main config for srs.
|
|
|
|
# @see full.conf for detail config.
|
|
|
|
|
2013-11-28 11:25:56 +00:00
|
|
|
listen 1935;
|
2014-07-26 07:34:45 +00:00
|
|
|
max_connections 1000;
|
2021-10-08 13:58:33 +00:00
|
|
|
#srs_log_tank file;
|
|
|
|
#srs_log_file ./objs/srs.log;
|
2020-10-23 13:22:58 +00:00
|
|
|
daemon on;
|
2014-04-08 05:54:16 +00:00
|
|
|
http_api {
|
|
|
|
enabled on;
|
|
|
|
listen 1985;
|
|
|
|
}
|
2015-01-22 01:34:33 +00:00
|
|
|
http_server {
|
2014-04-08 05:54:16 +00:00
|
|
|
enabled on;
|
|
|
|
listen 8080;
|
|
|
|
dir ./objs/nginx/html;
|
|
|
|
}
|
2021-10-08 13:22:34 +00:00
|
|
|
rtc_server {
|
|
|
|
enabled on;
|
2021-12-12 07:53:08 +00:00
|
|
|
listen 8000; # UDP port
|
2022-07-31 08:26:35 +00:00
|
|
|
# @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#config-candidate
|
2021-10-08 13:22:34 +00:00
|
|
|
candidate $CANDIDATE;
|
|
|
|
}
|
2013-11-02 09:55:59 +00:00
|
|
|
vhost __defaultVhost__ {
|
2020-10-23 13:22:58 +00:00
|
|
|
hls {
|
|
|
|
enabled on;
|
|
|
|
}
|
|
|
|
http_remux {
|
|
|
|
enabled on;
|
|
|
|
mount [vhost]/[app]/[stream].flv;
|
|
|
|
}
|
2021-10-08 13:22:34 +00:00
|
|
|
rtc {
|
|
|
|
enabled on;
|
2022-07-31 08:26:35 +00:00
|
|
|
# @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#rtmp-to-rtc
|
2021-10-11 14:14:45 +00:00
|
|
|
rtmp_to_rtc off;
|
2022-07-31 08:26:35 +00:00
|
|
|
# @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#rtc-to-rtmp
|
2021-10-10 09:17:14 +00:00
|
|
|
rtc_to_rtmp off;
|
2021-10-08 13:22:34 +00:00
|
|
|
}
|
2022-11-22 04:31:45 +00:00
|
|
|
|
|
|
|
play{
|
|
|
|
gop_cache_max_frames 250;
|
|
|
|
}
|
2013-12-21 16:08:17 +00:00
|
|
|
}
|