From 292c74c7a92efe45cfdfc091fb48d8c575346a95 Mon Sep 17 00:00:00 2001 From: Daniel Thwaites Date: Sun, 17 Dec 2023 19:17:10 +0000 Subject: [PATCH] nixos/nextcloud: set correct MIME type for .mjs files --- nixos/modules/services/web-apps/nextcloud.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nixos/modules/services/web-apps/nextcloud.nix b/nixos/modules/services/web-apps/nextcloud.nix index 2a3db4cd13f9..a833f38eb851 100644 --- a/nixos/modules/services/web-apps/nextcloud.nix +++ b/nixos/modules/services/web-apps/nextcloud.nix @@ -1135,6 +1135,9 @@ in { try_files $uri /index.php$request_uri; expires 6M; access_log off; + location ~ \.mjs$ { + default_type text/javascript; + } location ~ \.wasm$ { default_type application/wasm; }