mirror of
https://github.com/ossrs/srs.git
synced 2025-02-13 11:51:57 +00:00
In dockerfile, we can set the default RTC candidate to env: ``` ENV SRS_RTC_SERVER_CANDIDATE=\$CANDIDATE CMD ["./objs/srs", "-e"] ``` When starts a docker container, user can setup the candidate by env: ``` docker run --rm -it --env CANDIDATE=1.2.3.4 ossrs/srs:5 ``` We should parse the content of SRS_RTC_SERVER_CANDIDATE as env variable name and parse it again. --------- Co-authored-by: chundonglinlin <chundonglinlin@163.com> Co-authored-by: pengfei.ma <pengfei.ma@ctechm.com>
22 lines
484 B
Text
22 lines
484 B
Text
# the config for srs to delivery realtime RTMP stream
|
|
# @see https://ossrs.net/lts/zh-cn/docs/v4/doc/sample-realtime
|
|
# @see full.conf for detail config.
|
|
|
|
listen 1935;
|
|
max_connections 1000;
|
|
daemon off;
|
|
srs_log_tank console;
|
|
vhost __defaultVhost__ {
|
|
tcp_nodelay on;
|
|
min_latency on;
|
|
|
|
play {
|
|
gop_cache off;
|
|
queue_length 10;
|
|
mw_latency 100;
|
|
}
|
|
|
|
publish {
|
|
mr off;
|
|
}
|
|
}
|