123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- listen 19352;
- max_connections 1000;
- pid objs/origin2.pid;
- daemon off;
- srs_log_tank console;
- http_server {
- enabled on;
- listen 8082;
- dir ./objs/nginx/html;
- }
- http_api {
- enabled on;
- listen 19853;
- }
- rtc_server {
- enabled on;
- listen 8001; # UDP port
- # @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#config-candidate
- candidate $CANDIDATE;
- }
- srt_server {
- enabled on;
- listen 10082;
- tsbpdmode off;
- tlpktdrop off;
- }
- heartbeat {
- enabled on;
- interval 9;
- url http://127.0.0.1:12025/api/v1/srs/register;
- device_id origin2;
- ports on;
- }
- vhost __defaultVhost__ {
- http_remux {
- enabled on;
- mount [vhost]/[app]/[stream].flv;
- }
- hls {
- enabled on;
- hls_path ./objs/nginx/html;
- hls_fragment 10;
- hls_window 60;
- }
- rtc {
- enabled on;
- # @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#rtmp-to-rtc
- rtmp_to_rtc on;
- # @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#rtc-to-rtmp
- rtc_to_rtmp on;
- }
- srt {
- enabled on;
- srt_to_rtmp on;
- }
- }
|