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.