refactor(nginx): streams are separated by key
This commit is contained in:
@@ -16,9 +16,11 @@ rtmp {
|
||||
allow play all;
|
||||
|
||||
hls on;
|
||||
hls_path /tmp/hls;
|
||||
hls_nested on;
|
||||
hls_path /stream;
|
||||
hls_fragment_naming system;
|
||||
hls_fragment 3;
|
||||
hls_playlist_length 60;
|
||||
hls_playlist_length 28800;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -33,7 +35,7 @@ http {
|
||||
application/vnd.apple.mpegurl m3u8; # proper MIME for HLS playlists
|
||||
video/mp2t ts; # MPEG-TS segment MIME
|
||||
}
|
||||
root /tmp;
|
||||
root /stream;
|
||||
add_header Cache-Control no-cache; # prevent stale segments
|
||||
add_header Access-Control-Allow-Origin *; # CORS for browser playback
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user