mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
WebRTC: Support configure CANDIDATE by env (#3470)
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>
This commit is contained in:
parent
b574ad1a07
commit
b34255c3d0
7 changed files with 43 additions and 4 deletions
|
@ -2,6 +2,10 @@ listen 1935;
|
|||
max_connections 1000;
|
||||
daemon off;
|
||||
srs_log_tank console;
|
||||
srt_server {
|
||||
enabled on;
|
||||
listen 10080;
|
||||
}
|
||||
http_api {
|
||||
enabled on;
|
||||
listen 1985;
|
||||
|
@ -11,6 +15,10 @@ http_server {
|
|||
listen 8080;
|
||||
}
|
||||
vhost __defaultVhost__ {
|
||||
srt {
|
||||
enabled on;
|
||||
srt_to_rtmp on;
|
||||
}
|
||||
http_remux {
|
||||
enabled on;
|
||||
mount [vhost]/[app]/[stream].flv;
|
||||
|
|
|
@ -2,6 +2,10 @@ listen 1935;
|
|||
max_connections 1000;
|
||||
daemon off;
|
||||
srs_log_tank console;
|
||||
srt_server {
|
||||
enabled on;
|
||||
listen 10080;
|
||||
}
|
||||
http_api {
|
||||
enabled on;
|
||||
listen 1985;
|
||||
|
@ -11,6 +15,10 @@ http_server {
|
|||
listen 8080;
|
||||
}
|
||||
vhost __defaultVhost__ {
|
||||
srt {
|
||||
enabled on;
|
||||
srt_to_rtmp on;
|
||||
}
|
||||
http_remux {
|
||||
enabled on;
|
||||
mount [vhost]/[app]/[stream].ts;
|
||||
|
|
|
@ -7,7 +7,7 @@ max_connections 1000;
|
|||
daemon off;
|
||||
srs_log_tank console;
|
||||
vhost __defaultVhost__ {
|
||||
tcp_nodelay on
|
||||
tcp_nodelay on;
|
||||
min_latency on;
|
||||
|
||||
play {
|
||||
|
|
|
@ -17,7 +17,7 @@ vhost __defaultVhost__ {
|
|||
mount [vhost]/[app]/[stream].flv;
|
||||
}
|
||||
|
||||
tcp_nodelay on
|
||||
tcp_nodelay on;
|
||||
min_latency on;
|
||||
|
||||
play {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue