Add .mjs new MIME type to NGINX

If you need to develop something in a modern JavaScript environment you should allow .mjs files in NGINX levels.

Create allow-mjs-file.conf

If you need to develop something in a modern JavaScript environment you should allow .mjs files in NGINX levels.

nano /etc/nginx/conf.d/allow-mjs-file.conf

Put content to file allow-mjs-file.conf

types { 
   application/x-javascript mjs;
}

Check if NGINX syntax is correct

nginx -t

Reload NGINX

gp ngx reload