From 3e9462656ebd60b0e5179b3ed342f9fcf9e67c10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Wed, 10 Jan 2024 16:56:53 +0100 Subject: [PATCH] Add .mjs as a file extension --- conf/nginx.conf | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 1750d6a..6375a8b 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,4 +1,13 @@ -location ^~ /.well-known { +# Add .mjs as a file extension for javascript +# Either include it in the default mime.types list +# or include you can include that list explicitly and add the file extension +# only for Nextcloud like below: +include mime.types; +types { + text/javascript js mjs; +} + + location ^~ /.well-known { # The following 6 rules are borrowed from `.htaccess` # The following 2 rules are only needed for the user_webfinger app.