NextGB, web demo powerd by vue
This commit is contained in:
18
conf/config.yaml
Normal file
18
conf/config.yaml
Normal file
@ -0,0 +1,18 @@
|
||||
# 通用配置
|
||||
common:
|
||||
log-level: "info"
|
||||
|
||||
# GB28181配置
|
||||
gb28181:
|
||||
serial: "34020000002000000001"
|
||||
realm: "3402000000"
|
||||
host: "0.0.0.0"
|
||||
port: 5060
|
||||
auth:
|
||||
enable: false
|
||||
password: "123456"
|
||||
|
||||
# HTTP服务配置
|
||||
http:
|
||||
listen: 8025
|
||||
dir: ./html
|
||||
60
conf/srs.conf
Normal file
60
conf/srs.conf
Normal file
@ -0,0 +1,60 @@
|
||||
listen 1935;
|
||||
max_connections 1000;
|
||||
# For docker, please use docker logs to manage the logs of SRS.
|
||||
# See https://docs.docker.com/config/containers/logging/
|
||||
srs_log_tank console;
|
||||
daemon off;
|
||||
disable_daemon_for_docker off;
|
||||
http_api {
|
||||
enabled on;
|
||||
listen 1985;
|
||||
raw_api {
|
||||
enabled on;
|
||||
allow_reload on;
|
||||
}
|
||||
}
|
||||
http_server {
|
||||
enabled on;
|
||||
listen 8080;
|
||||
dir ./objs/nginx/html;
|
||||
}
|
||||
|
||||
stream_caster {
|
||||
enabled on;
|
||||
caster gb28181;
|
||||
output rtmp://127.0.0.1/live/[stream];
|
||||
listen 9000;
|
||||
sip {
|
||||
enabled off;
|
||||
}
|
||||
}
|
||||
|
||||
rtc_server {
|
||||
enabled on;
|
||||
listen 8000; # UDP port
|
||||
# @see https://github.com/ossrs/srs/wiki/v4_CN_WebRTC#config-candidate
|
||||
candidate $CANDIDATE;
|
||||
# Disable for Oryx.
|
||||
use_auto_detect_network_ip off;
|
||||
api_as_candidates off;
|
||||
}
|
||||
|
||||
vhost __defaultVhost__ {
|
||||
http_remux {
|
||||
enabled on;
|
||||
mount [vhost]/[app]/[stream].flv;
|
||||
}
|
||||
rtc {
|
||||
enabled on;
|
||||
nack on;
|
||||
twcc on;
|
||||
stun_timeout 30;
|
||||
dtls_role passive;
|
||||
# @see https://github.com/ossrs/srs/wiki/v4_CN_WebRTC#rtmp-to-rtc
|
||||
rtmp_to_rtc on;
|
||||
keep_bframe off;
|
||||
# @see https://github.com/ossrs/srs/wiki/v4_CN_WebRTC#rtc-to-rtmp
|
||||
rtc_to_rtmp on;
|
||||
pli_for_rtmp 6.0;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user