From 7527399da08d2cdd56ec6b20499acbd96c89ec93 Mon Sep 17 00:00:00 2001 From: 3wc <3wc@doesthisthing.work> Date: Tue, 7 May 2024 14:51:28 -0300 Subject: [PATCH] Add mjs as a mimetype for javascript --- abra.sh | 2 +- nginx.conf.tmpl | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/abra.sh b/abra.sh index f185162..33e5250 100644 --- a/abra.sh +++ b/abra.sh @@ -1,7 +1,7 @@ #!/bin/bash export FPM_TUNE_VERSION=v5 -export NGINX_CONF_VERSION=v5 +export NGINX_CONF_VERSION=v6 export MY_CNF_VERSION=v5 export ENTRYPOINT_VERSION=v3 diff --git a/nginx.conf.tmpl b/nginx.conf.tmpl index a2e7a37..f7241d1 100644 --- a/nginx.conf.tmpl +++ b/nginx.conf.tmpl @@ -11,6 +11,10 @@ events { http { include /etc/nginx/mime.types; + # See https://github.com/nextcloud/forms/issues/1838#issuecomment-1860497200 + types { + application/javascript js mjs; + } default_type application/octet-stream; log_format main '$remote_addr - $remote_user [$time_local] "$request" '