Update Nextcloud 31

Added mime-types & support for /ocm-provider/
This commit is contained in:
papypom
2025-03-20 22:21:40 +01:00
committed by GitHub
parent 431e8d1df6
commit 9fd9853faa

View File

@@ -39,6 +39,14 @@ server {
add_header Permissions-Policy "geolocation=(),midi=(),sync-xhr=(),microphone=(),camera=(),magnetometer=(),gyroscope=(),fullscreen=(self),payment=()";
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload;";
# Set .mjs and .wasm MIME types
include mime.types;
types {
text/javascript mjs;
application/wasm wasm;
}
location ^~ /.well-known {
# The rules in this block are an adaptation of the rules
# in `.htaccess` that concern `/.well-known`.
@@ -94,12 +102,12 @@ server {
fastcgi_param PHP_VALUE "{{php_settings}}";
}
location ~ ^\/(?:updater|oc[ms]-provider)(?:$|\/) {
location ~ ^\/(?:updater|ocs-provider)(?:$|\/) {
try_files $uri/ =404;
index index.php;
}
location ~ \.(?:css|js|woff2?|svg|gif|map)$ {
location ~ \.(?:css|js|mjs|woff2?|svg|gif|wasm|map|otf)$ {
try_files $uri /index.php$request_uri;
add_header Cache-Control "public, max-age=15778463";
add_header X-Content-Type-Options nosniff;