#6624 -- Change MIME type for m3u8 files to improve compatibility.
This commit is contained in:
parent
8c8c227f02
commit
546e1ce4a8
|
@ -103,11 +103,6 @@ final class ConfigWriter implements EventSubscriberInterface
|
|||
<<<NGINX
|
||||
# Reverse proxy the frontend broadcast.
|
||||
location {$hlsBaseUrl} {
|
||||
types {
|
||||
application/vnd.apple.mpegurl m3u8;
|
||||
video/mp2t ts;
|
||||
}
|
||||
|
||||
location ~ \.m3u8$ {
|
||||
access_log {$hlsLogPath} hls_json;
|
||||
}
|
||||
|
|
|
@ -61,7 +61,7 @@ mkdir -p /etc/my_init.d
|
|||
|
||||
# Install other common scripts.
|
||||
apt-get install -y --no-install-recommends \
|
||||
tini gosu curl wget tar zip unzip git rsync tzdata gpg-agent openssh-client
|
||||
tini gosu curl wget tar zip unzip git rsync tzdata gnupg gpg-agent openssh-client
|
||||
|
||||
# Add scripts
|
||||
cp -rT /bd_build/scripts/ /usr/local/bin
|
||||
|
|
|
@ -9,6 +9,9 @@ cp /bd_build/web/nginx/proxy_params.conf /etc/nginx/proxy_params
|
|||
cp /bd_build/web/nginx/nginx.conf.tmpl /etc/nginx/nginx.conf.tmpl
|
||||
cp /bd_build/web/nginx/azuracast.conf.tmpl /etc/nginx/azuracast.conf.tmpl
|
||||
|
||||
# Change M3U8 MIME type to "application/x-mpegurl" for broader compatibility.
|
||||
sed -i 's#application/vnd.apple.mpegurl#application/x-mpegurl#' /etc/nginx/mime.types
|
||||
|
||||
mkdir -p /etc/nginx/azuracast.conf.d/
|
||||
|
||||
# Create nginx temp dirs
|
||||
|
|
Loading…
Reference in New Issue