mirror of
https://github.com/nextcloud/documentation.git
synced 2025-12-12 07:29:47 +07:00
Adjust nginx configuration for .ogg and .flac files
Signed-off-by: Marcel Müller <marcel-mueller@gmx.de>
This commit is contained in:
@@ -165,7 +165,7 @@ server {
|
||||
}
|
||||
|
||||
# Serve static files
|
||||
location ~ \.(?:css|js|mjs|svg|gif|png|jpg|ico|wasm|tflite|map)$ {
|
||||
location ~ \.(?:css|js|mjs|svg|gif|png|jpg|ico|wasm|tflite|map|ogg|flac)$ {
|
||||
try_files $uri /index.php$request_uri;
|
||||
add_header Cache-Control "public, max-age=15778463, $asset_immutable";
|
||||
access_log off; # Optional: Don't log access to assets
|
||||
|
||||
@@ -163,7 +163,7 @@ server {
|
||||
}
|
||||
|
||||
# Serve static files
|
||||
location ~ \.(?:css|js|mjs|svg|gif|png|jpg|ico|wasm|tflite|map)$ {
|
||||
location ~ \.(?:css|js|mjs|svg|gif|png|jpg|ico|wasm|tflite|map|ogg|flac)$ {
|
||||
try_files $uri /nextcloud/index.php$request_uri;
|
||||
add_header Cache-Control "public, max-age=15778463, $asset_immutable";
|
||||
access_log off; # Optional: Don't log access to assets
|
||||
|
||||
@@ -16,4 +16,4 @@ Nextcloud 27 exposes the :ref:`system address book<system-address-book>`. Restri
|
||||
Web server configuration
|
||||
------------------------
|
||||
|
||||
* The recommended :ref:`nginx configuration<nginx-config>` changed as Nextcloud now supports module javascript with the ``.mjs`` extension, make sure to add this extension to the list of static files.
|
||||
* The recommended :ref:`nginx configuration<nginx-config>` changed as Nextcloud now supports module javascript with the ``.mjs`` and audio files with ``.ogg`` / ``.flac`` extension, make sure to add these extensions to the list of static files.
|
||||
|
||||
Reference in New Issue
Block a user