listen 19351; max_connections 1000; pid objs/origin1.pid; daemon off; srs_log_tank console; http_server { enabled on; listen 8081; dir ./objs/nginx/html; } http_api { enabled on; listen 19851; } 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 10081; tsbpdmode off; tlpktdrop off; } heartbeat { enabled on; interval 9; url http://127.0.0.1:12025/api/v1/srs/register; device_id origin1; 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; } }