Unable to play videos, mp3 nor view pics from webapp (nextcloud 30.0.4)

Hi!

Thanks for helping.

When going to Files, under the console in the browser inspector i get several ERR_ABORTED 404 of mjs files

Under Administration Settings → Overview i have some warnings.
I guess this is the important one
image

As stated here i went to the nginx config to check wether it was serving mjs or not. I added it to application/javascript js; and now it is application/javascript js mjs;
Then reloaded nginx but it was still not working.

Then checked my nginx config and saw I wasn’t declaring anything for mjs files.
So, in my nginx.conf file, where it stated
location ~ \.(?:css|js|woff2?|svg|gif|map)$ {
I added mjs.
location ~ \.(?:css|js|mjs|woff2?|svg|gif|map)$ {

Then restarted nginx (systemctl reload nginx)

and it started to work as a charm.

Thank you so much for your guidance, it was the key to find what was going on!

Edit: Just in case anyone arrives here, check also some other cache control kind of files you may add.
Now I have, as stated in docs
location ~ \.(?:css|js|mjs|svg|gif|ico|jpg|png|webp|wasm|tflite|map|ogg|flac)$ {

2 Likes