Fix MIME type configuration to allow multiple formats for m3u8 files and ensure all VideoJS files are properly deployed
ci/woodpecker/push/woodpecker Pipeline failed
Details
ci/woodpecker/push/woodpecker Pipeline failed
Details
This commit is contained in:
parent
376784527f
commit
41ef9cd254
|
@ -13,15 +13,22 @@
|
||||||
# Enable compression for text-based resources
|
# Enable compression for text-based resources
|
||||||
encode gzip zstd
|
encode gzip zstd
|
||||||
|
|
||||||
# MIME type overrides for HLS streaming
|
# MIME type overrides for HLS streaming - allow multiple formats
|
||||||
@m3u8Files {
|
@m3u8Files {
|
||||||
path *.m3u8
|
path *.m3u8
|
||||||
}
|
}
|
||||||
@tsFiles {
|
@tsFiles {
|
||||||
path *.ts
|
path *.ts
|
||||||
}
|
}
|
||||||
header @m3u8Files Content-Type "application/x-mpegURL"
|
# Support multiple MIME types for HLS
|
||||||
header @tsFiles Content-Type "video/MP2T"
|
header @m3u8Files {
|
||||||
|
Content-Type "application/x-mpegURL, application/vnd.apple.mpegurl"
|
||||||
|
Access-Control-Allow-Origin "*"
|
||||||
|
}
|
||||||
|
header @tsFiles {
|
||||||
|
Content-Type "video/MP2T"
|
||||||
|
Access-Control-Allow-Origin "*"
|
||||||
|
}
|
||||||
|
|
||||||
# Security headers
|
# Security headers
|
||||||
header {
|
header {
|
||||||
|
|
Loading…
Reference in New Issue