Add mp4 and webm to nginx config

Mp4 is used by the firstrun plugin. Without these being mentioned in
this section, the firstrun movie isn't shown and the first run modal
dialog apparently can't be closed.

Webm added for completeness as there are files like this in firstrun
assets.

Signed-off-by: Miłosz Kosobucki <milosz@kosobucki.pl>
This commit is contained in:
Miłosz Kosobucki
2025-11-11 15:21:03 +01:00
parent e30a3b5c64
commit b60a593f9e
2 changed files with 2 additions and 2 deletions

View File

@@ -183,7 +183,7 @@ server {
}
# Serve static files
location ~ \.(?:css|js|mjs|svg|gif|ico|jpg|png|webp|wasm|tflite|map|ogg|flac)$ {
location ~ \.(?:css|js|mjs|svg|gif|ico|jpg|png|webp|wasm|tflite|map|ogg|flac|mp4|webm)$ {
try_files $uri /index.php$request_uri;
# HTTP response headers borrowed from Nextcloud `.htaccess`
add_header Cache-Control "public, max-age=15778463$asset_immutable";

View File

@@ -182,7 +182,7 @@ server {
}
# Serve static files
location ~ \.(?:css|js|mjs|svg|gif|ico|jpg|png|webp|wasm|tflite|map|ogg|flac)$ {
location ~ \.(?:css|js|mjs|svg|gif|ico|jpg|png|webp|wasm|tflite|map|ogg|flac|mp4|webm)$ {
try_files $uri /nextcloud/index.php$request_uri;
# HTTP response headers borrowed from Nextcloud `.htaccess`
add_header Cache-Control "public, max-age=15778463$asset_immutable";