diff --git a/conf/nginx.conf b/conf/nginx.conf index bdbf14f..4d01938 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -58,6 +58,15 @@ location ^~ __PATH__/ { # Remove X-Powered-By, which is an information leak fastcgi_hide_header X-Powered-By; + # 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; + } + # Specify how to handle directories -- specifying `/nextcloud/index.php$request_uri` # here as the fallback means that Nginx always exhibits the desired behaviour # when a client requests a path that corresponds to a directory that exists