How to set up ".mjs" MIME Type for the templates

SOLUTION (also for empty Contacts and Activity on Nextcloud):

If you have any web application which errors in “mjs support not found” just add following to the mime.types in nginx:

sudo nano /etc/nginx/mime.types

add:

application/javascript    mjs;

restart the nginx

sudo systemctl restart nginx

Done be happy <3

5 Likes