1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- 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 8080;
- }
- 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://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#config-candidate
- candidate $CANDIDATE;
- }
- vhost __defaultVhost__ {
- rtc {
- enabled 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;
- }
- }
- }
|