2021-10-10 09:17:14 +00:00
|
|
|
|
|
|
|
listen 1935;
|
|
|
|
max_connections 1000;
|
|
|
|
daemon off;
|
|
|
|
srs_log_tank console;
|
|
|
|
|
|
|
|
http_server {
|
|
|
|
enabled on;
|
|
|
|
listen 8080;
|
|
|
|
dir ./objs/nginx/html;
|
|
|
|
}
|
|
|
|
|
|
|
|
http_api {
|
|
|
|
enabled on;
|
|
|
|
listen 1985;
|
|
|
|
}
|
|
|
|
stats {
|
|
|
|
network 0;
|
|
|
|
}
|
|
|
|
rtc_server {
|
|
|
|
enabled on;
|
2021-12-12 07:53:08 +00:00
|
|
|
listen 8000; # UDP port
|
2022-07-31 08:26:35 +00:00
|
|
|
# @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#config-candidate
|
2021-10-10 09:17:14 +00:00
|
|
|
candidate $CANDIDATE;
|
|
|
|
}
|
|
|
|
|
|
|
|
vhost __defaultVhost__ {
|
|
|
|
rtc {
|
|
|
|
enabled on;
|
2022-07-31 08:26:35 +00:00
|
|
|
# @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#rtmp-to-rtc
|
2021-10-11 14:14:45 +00:00
|
|
|
rtmp_to_rtc on;
|
2022-07-31 08:26:35 +00:00
|
|
|
# @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#rtc-to-rtmp
|
2021-10-10 09:17:14 +00:00
|
|
|
rtc_to_rtmp on;
|
|
|
|
}
|
|
|
|
http_remux {
|
|
|
|
enabled on;
|
|
|
|
mount [vhost]/[app]/[stream].flv;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|