mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Merge branch '4.0release' into merge/develop
This commit is contained in:
commit
d8e41cd283
150 changed files with 45007 additions and 398 deletions
|
@ -520,10 +520,6 @@ rtc_server {
|
|||
# @see https://github.com/ossrs/srs/issues/307#issuecomment-612806318
|
||||
# default: off
|
||||
merge_nalus off;
|
||||
# Whether enable the perf stat at http://localhost:1985/api/v1/perf
|
||||
# TODO: FIXME: We should enable it when refined.
|
||||
# default: off
|
||||
perf_stat off;
|
||||
# The black-hole to copy packet to, for debugging.
|
||||
# For example, when debugging Chrome publish stream, the received packets are encrypted cipher,
|
||||
# we can set the publisher black-hole, SRS will copy the plaintext packets to black-hole, and
|
||||
|
|
|
@ -27,7 +27,13 @@ srt_server {
|
|||
|
||||
# @doc https://github.com/ossrs/srs/issues/1147#issuecomment-577607026
|
||||
vhost __defaultVhost__ {
|
||||
http_remux {
|
||||
enabled on;
|
||||
mount [vhost]/[app]/[stream].flv;
|
||||
}
|
||||
}
|
||||
|
||||
# For SRT to use vhost.
|
||||
vhost srs.srt.com.cn {
|
||||
}
|
||||
|
||||
|
|
48
trunk/conf/srt2rtc.conf
Normal file
48
trunk/conf/srt2rtc.conf
Normal file
|
@ -0,0 +1,48 @@
|
|||
|
||||
listen 1935;
|
||||
max_connections 1000;
|
||||
daemon off;
|
||||
srs_log_tank console;
|
||||
|
||||
http_api {
|
||||
enabled on;
|
||||
listen 1985;
|
||||
}
|
||||
|
||||
http_server {
|
||||
enabled on;
|
||||
listen 8080;
|
||||
dir ./objs/nginx/html;
|
||||
}
|
||||
|
||||
srt_server {
|
||||
enabled on;
|
||||
listen 10080;
|
||||
maxbw 1000000000;
|
||||
connect_timeout 4000;
|
||||
peerlatency 300;
|
||||
recvlatency 300;
|
||||
}
|
||||
|
||||
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/wiki/v4_CN_RTCWiki#config-candidate
|
||||
candidate $CANDIDATE;
|
||||
}
|
||||
|
||||
# @doc https://github.com/ossrs/srs/issues/1147#issuecomment-577607026
|
||||
vhost __defaultVhost__ {
|
||||
rtc {
|
||||
enabled on;
|
||||
}
|
||||
http_remux {
|
||||
enabled on;
|
||||
mount [vhost]/[app]/[stream].flv;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue