diff --git a/v2-http3/Nextcloud/Nextcloud 31 b/v2-http3/Nextcloud/Nextcloud 31 index e5a1867..e83ac39 100644 --- a/v2-http3/Nextcloud/Nextcloud 31 +++ b/v2-http3/Nextcloud/Nextcloud 31 @@ -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; @@ -121,4 +129,4 @@ server { if (-f $request_filename) { break; } -} \ No newline at end of file +}