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

This commit is contained in:
Leopere 2025-03-08 12:07:20 -05:00
parent 376784527f
commit 41ef9cd254
1 changed files with 10 additions and 3 deletions

View File

@ -13,15 +13,22 @@
# Enable compression for text-based resources
encode gzip zstd
# MIME type overrides for HLS streaming
# MIME type overrides for HLS streaming - allow multiple formats
@m3u8Files {
path *.m3u8
}
@tsFiles {
path *.ts
}
header @m3u8Files Content-Type "application/x-mpegURL"
header @tsFiles Content-Type "video/MP2T"
# Support multiple MIME types for HLS
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
header {