update nextcloud 28

This commit is contained in:
stubbfel
2024-03-11 22:13:55 +01:00
parent 0b86fda79a
commit 23211c1313

View File

@@ -147,10 +147,16 @@ in
fastcgi_read_timeout 120s;
'';
};
"~ \\.(?:css|js|woff2?|svg|gif|map)$".extraConfig = ''
"~ \\.(?:css|js|mjs|svg|gif|png|jpg|ico|wasm|tflite|map|ogg|flac)$".extraConfig = ''
try_files $uri /index.php$request_uri;
expires 6M;
access_log off;
location ~ \.mjs$ {
default_type text/javascript;
}
location ~ \.wasm$ {
default_type application/wasm;
}
'';
"~ ^\\/(?:updater|ocs-provider)(?:$|\\/)".extraConfig = ''
try_files $uri/ =404;
@@ -160,6 +166,11 @@ in
try_files $uri /index.php$request_uri;
access_log off;
'';
"~ \.woff2?$".extraConfig = ''
try_files $uri /index.php$request_uri;
expires 7d; # Cache-Control policy borrowed from `.htaccess`
access_log off; # Optional: Don't log access to assets
'';
};
};