From 83c615aa8ae8511ec213fb680e9b43077cdffad2 Mon Sep 17 00:00:00 2001 From: winlin Date: Thu, 4 Mar 2021 22:45:43 +0800 Subject: [PATCH] SquashSRS3: Docker: Add conf/docker.conf, daemon off, log console, enable RTC --- trunk/conf/docker.conf | 44 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 trunk/conf/docker.conf diff --git a/trunk/conf/docker.conf b/trunk/conf/docker.conf new file mode 100644 index 000000000..a819e3379 --- /dev/null +++ b/trunk/conf/docker.conf @@ -0,0 +1,44 @@ +# main config for srs. +# @see full.conf for detail config. + +listen 1935; +max_connections 1000; +srs_log_tank console; +daemon off; +http_api { + enabled on; + listen 1985; +} +http_server { + enabled on; + listen 8080; + dir ./objs/nginx/html; +} +stats { + network 0; + disk sda sdb xvda xvdb; +} +rtc_server { + enabled on; + # Listen at udp://8000 + listen 8000; + # + # The $CANDIDATE means fetch from env, if not configed, use * as default. + # + # The * means retrieving server IP automatically, from all network interfaces, + # @see https://github.com/ossrs/srs/issues/307#issuecomment-599028124 + candidate $CANDIDATE; +} +vhost __defaultVhost__ { + hls { + enabled on; + } + http_remux { + enabled on; + mount [vhost]/[app]/[stream].flv; + } + rtc { + enabled on; + bframe discard; + } +}