Merge pull request #47 from papypom/patch-1

Update Nextcloud 31
This commit is contained in:
cloudpanel-io
2025-04-07 16:46:12 +02:00
committed by GitHub

View File

@@ -39,6 +39,14 @@ server {
add_header Permissions-Policy "geolocation=(),midi=(),sync-xhr=(),microphone=(),camera=(),magnetometer=(),gyroscope=(),fullscreen=(self),payment=()"; 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;"; 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 { location ^~ /.well-known {
# The rules in this block are an adaptation of the rules # The rules in this block are an adaptation of the rules
# in `.htaccess` that concern `/.well-known`. # in `.htaccess` that concern `/.well-known`.
@@ -94,12 +102,12 @@ server {
fastcgi_param PHP_VALUE "{{php_settings}}"; fastcgi_param PHP_VALUE "{{php_settings}}";
} }
location ~ ^\/(?:updater|oc[ms]-provider)(?:$|\/) { location ~ ^\/(?:updater|ocs-provider)(?:$|\/) {
try_files $uri/ =404; try_files $uri/ =404;
index index.php; 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; try_files $uri /index.php$request_uri;
add_header Cache-Control "public, max-age=15778463"; add_header Cache-Control "public, max-age=15778463";
add_header X-Content-Type-Options nosniff; add_header X-Content-Type-Options nosniff;
@@ -121,4 +129,4 @@ server {
if (-f $request_filename) { if (-f $request_filename) {
break; break;
} }
} }