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 | ||||
|     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 { | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue