Skip to content

Commit 88eaa2f

Browse files
authored
Merge pull request #13874 from nextcloud/backport/13851/stable31
[stable31] Add mp4 and webm to nginx config
2 parents 78ea8b1 + 80ea2dc commit 88eaa2f

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
@@ -171,7 +171,7 @@ server {
171171
}
172172

173173
# Serve static files
174-
location ~ \.(?:css|js|mjs|svg|gif|ico|jpg|png|webp|wasm|tflite|map|ogg|flac)$ {
174+
location ~ \.(?:css|js|mjs|svg|gif|ico|jpg|png|webp|wasm|tflite|map|ogg|flac|mp4|webm)$ {
175175
try_files $uri /index.php$request_uri;
176176
# HTTP response headers borrowed from Nextcloud `.htaccess`
177177
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
@@ -168,7 +168,7 @@ server {
168168
}
169169

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

0 commit comments

Comments
 (0)