mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-11-08 22:53:01 +03:00
use sub_filter to pass vod playlist args to segment URLs
Home Assistant signs vod playlist URLs with authSig and needs it on every init, segment, and index URL in the playlist. sub_filter appends the request args to the three URL endings vod writes, giving byte-identical playlists to the old secure_token output.
This commit is contained in:
@@ -143,6 +143,15 @@ http {
|
||||
# version 6 (RFC 8216 section 7); the module default is 4
|
||||
vod_hls_version 6;
|
||||
|
||||
# Pass the playlist's query args (e.g. Home Assistant's authSig) on
|
||||
# to every URL in it. These match the only URL endings vod writes
|
||||
# with fmp4 and no subtitles.
|
||||
sub_filter_types application/vnd.apple.mpegurl;
|
||||
sub_filter_once off;
|
||||
sub_filter '.m3u8' '.m3u8$is_args$args';
|
||||
sub_filter '.m4s' '.m4s$is_args$args';
|
||||
sub_filter '.mp4"' '.mp4$is_args$args"';
|
||||
|
||||
include security_headers.conf;
|
||||
add_header Cache-Control "no-store";
|
||||
expires off;
|
||||
|
||||
Reference in New Issue
Block a user