summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Thwaites <danthwaites30@btinternet.com>2023-12-17 19:17:10 +0000
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2023-12-18 10:07:53 +0000
commitc44f8fe4a0481ef177d16a36a0a4572f4c95e229 (patch)
tree164b05641f9da56c9d84e88f49052a257aba8974
parentMerge pull request #275116 from NixOS/backport-275044-to-release-23.11 (diff)
downloadnixpkgs-c44f8fe4a0481ef177d16a36a0a4572f4c95e229.tar.gz
nixos/nextcloud: set correct MIME type for .mjs files
(cherry picked from commit 292c74c7a92efe45cfdfc091fb48d8c575346a95)
-rw-r--r--nixos/modules/services/web-apps/nextcloud.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/nixos/modules/services/web-apps/nextcloud.nix b/nixos/modules/services/web-apps/nextcloud.nix
index e3529ed4d95b..ca40678e9e50 100644
--- a/nixos/modules/services/web-apps/nextcloud.nix
+++ b/nixos/modules/services/web-apps/nextcloud.nix
@@ -1139,6 +1139,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;
}