From d62b627093e62e81d2cc1b94c24f10aeea03cd45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Gra=CC=88fenstein?= Date: Sun, 22 Mar 2026 20:56:10 +0100 Subject: [PATCH] add .mjs MIME type to nginx to fix NS_ERROR_CORRUPTED_CONTENT nginx doesn't know .mjs by default and serves it as application/octet-stream, which breaks ES module loading and causes Caddy compression mismatches. --- nextcloud/nginx.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nextcloud/nginx.conf b/nextcloud/nginx.conf index 9f0a005..7796ddd 100644 --- a/nextcloud/nginx.conf +++ b/nextcloud/nginx.conf @@ -15,6 +15,11 @@ server { listen 80; server_name _; + include mime.types; + types { + application/javascript mjs; + } + client_max_body_size 10G; client_body_timeout 300s; fastcgi_buffers 64 4K;