From 89539e7df2e0fa9ed5344b5f955cf00596d3c93c Mon Sep 17 00:00:00 2001 From: VC Date: Wed, 22 Jan 2025 17:09:32 +0100 Subject: [PATCH] fix: add mjs+wasm for Nextcloud --- roles/nginx/templates/vhosts/o.libertus.eu.conf.j2 | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/roles/nginx/templates/vhosts/o.libertus.eu.conf.j2 b/roles/nginx/templates/vhosts/o.libertus.eu.conf.j2 index cd5a636..3b5c9bb 100644 --- a/roles/nginx/templates/vhosts/o.libertus.eu.conf.j2 +++ b/roles/nginx/templates/vhosts/o.libertus.eu.conf.j2 @@ -59,6 +59,16 @@ server { # Remove X-Powered-By, which is an information leak fastcgi_hide_header X-Powered-By; + # Set .mjs and .wasm MIME types + # Either include it in the default mime.types list + # and include that list explicitly or add the file extension + # only for Nextcloud like below: + include mime.types; + types { + text/javascript mjs; + application/wasm wasm; + } + # Specify how to handle directories -- specifying `/index.php$request_uri` # here as the fallback means that Nginx always exhibits the desired behaviour # when a client requests a path that corresponds to a directory that exists