Files
srs-spi/run/srs/conf/srs.conf
crosstyan 7e49007d16 Add Docker support and configuration for SRS SIP
- Created a new README_cross.md file with Docker build instructions.
- Updated srs.conf to include logging configuration options.
- Added docker-compose.yml to define the SRS SIP service with necessary ports and volume mappings.
- Introduced config.yaml for general and GB28181-specific configurations.
- Added initial srs.conf with settings for RTMP, HTTP API, and WebRTC support.
2026-01-13 11:28:56 +08:00

60 lines
1.4 KiB
Plaintext

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;
}
}