fix(clsi-nginx): add video and audio mime types
Build and Deploy Verso / deploy (push) Successful in 5m5s
Build and Deploy Verso / deploy (push) Successful in 5m5s
.mp4/.webm/etc. were served as application/octet-stream because the custom types block overrides nginx defaults and was missing media types. Browsers refuse to play media with a non-media Content-Type, especially with X-Content-Type-Options: nosniff set. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
90d9169c13
commit
8eac611f70
@@ -42,6 +42,12 @@ server {
|
||||
font/woff2 woff2;
|
||||
application/pdf pdf;
|
||||
text/plain log blg aux stdout stderr txt;
|
||||
video/mp4 mp4;
|
||||
video/webm webm;
|
||||
video/ogg ogv ogg;
|
||||
audio/mpeg mp3;
|
||||
audio/ogg oga;
|
||||
audio/wav wav;
|
||||
}
|
||||
# handle output files for specific users
|
||||
location ~ ^/project/([0-9a-f]+)/user/([0-9a-f]+)/build/([0-9a-f-]+)/output/(.+)$ {
|
||||
|
||||
Reference in New Issue
Block a user