build(docker): include content type header for transcript files

This commit is contained in:
Romain de Laage 2023-06-19 16:52:03 +02:00
parent 178bf998ab
commit bb3c8ba6d1
No known key found for this signature in database
GPG Key ID: B6B8919924DFF30B
2 changed files with 11 additions and 1 deletions

View File

@ -37,7 +37,13 @@
"settings": { "settings": {
"http": { "http": {
"body_read_timeout": $CP_TIMEOUT, "body_read_timeout": $CP_TIMEOUT,
"max_body_size": $CP_MAX_BODY_SIZE_BYTES "max_body_size": $CP_MAX_BODY_SIZE_BYTES,
"static": {
"mime_types": {
"text/vtt": [".vtt"],
"text/srt": [".srt"]
}
}
} }
} }
} }

View File

@ -9,6 +9,10 @@ events {
http { http {
include /etc/nginx/mime.types; include /etc/nginx/mime.types;
types {
text/vtt vtt;
text/srt srt;
}
default_type application/octet-stream; default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" ' log_format main '$remote_addr - $remote_user [$time_local] "$request" '