mirror of https://gitgud.io/fatchan/stream.git
The source behind http://stream.loki - minimal nginx configuration and backend code for a streaming site with streams index, thumbnails, viewcount, chat, and streamkeys.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
670 B
39 lines
670 B
rtmp_auto_push on;
|
|
rtmp_auto_push_reconnect 10s;
|
|
|
|
rtmp {
|
|
|
|
max_connections 1000;
|
|
|
|
server {
|
|
listen 172.16.0.1:1935;
|
|
listen x.x.x.x:1935;
|
|
allow publish x.x.x.x;
|
|
deny publish all;
|
|
allow play all;
|
|
chunk_size 4096;
|
|
application live {
|
|
# sync 100ms;
|
|
# play_restart on;
|
|
# interleave on;
|
|
# wait_key on;
|
|
# wait_video on;
|
|
drop_idle_publisher 10s;
|
|
#dash
|
|
dash on;
|
|
dash_path /tmp/dash;
|
|
dash_fragment 5;
|
|
dash_playlist_length 30;
|
|
#hls
|
|
hls on;
|
|
hls_fragment_naming system;
|
|
hls_path /tmp/hls;
|
|
hls_fragment 5;
|
|
hls_playlist_length 30;
|
|
#rtmp
|
|
on_publish http://127.0.0.1:7069/forms/stream;
|
|
live on;
|
|
record off;
|
|
}
|
|
}
|
|
}
|
|
|