mirror of https://github.com/ossrs/srs.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
1.3 KiB
Plaintext
60 lines
1.3 KiB
Plaintext
|
|
listen 1935;
|
|
max_connections 1000;
|
|
daemon on;
|
|
disable_daemon_for_docker off;
|
|
srs_log_tank file;
|
|
|
|
http_server {
|
|
enabled on;
|
|
listen 8080;
|
|
dir ./objs/nginx/html;
|
|
}
|
|
|
|
http_api {
|
|
enabled on;
|
|
listen 1985;
|
|
}
|
|
stats {
|
|
network 0;
|
|
}
|
|
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/issues/307#issuecomment-599028124
|
|
candidate $CANDIDATE;
|
|
}
|
|
|
|
vhost __defaultVhost__ {
|
|
rtc {
|
|
enabled on;
|
|
bframe discard;
|
|
rtc_to_rtmp on;
|
|
}
|
|
play {
|
|
atc on;
|
|
}
|
|
http_remux {
|
|
enabled on;
|
|
mount [vhost]/[app]/[stream].flv;
|
|
}
|
|
ingest livestream {
|
|
enabled on;
|
|
input {
|
|
type file;
|
|
url ./doc/source.200kbps.768x320.flv;
|
|
}
|
|
ffmpeg ./objs/ffmpeg/bin/ffmpeg;
|
|
engine {
|
|
enabled off;
|
|
output rtmp://127.0.0.1:[port]/live/livestream;
|
|
}
|
|
}
|
|
}
|
|
|