Skip to content

Commit 6e2b8c9

Browse files
authored
Merge pull request #13873 from nextcloud/backport/13851/stable32
[stable32] Add mp4 and webm to nginx config
2 parents 1575bb7 + 20478e6 commit 6e2b8c9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

admin_manual/installation/nginx-root.conf.sample

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ server {
183183
}
184184

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

admin_manual/installation/nginx-subdir.conf.sample

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ server {
182182
}
183183

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

0 commit comments

Comments
 (0)