r/nextcloud: Update rewrite config for .mjs files

Nextcloud 28+ uses JavaScript modules (`.mjs` files).  These need to be
served from the filesystem like other static files, so the *mod_rewrite*
configuration needs to be updated as such.
frigate-exporter
Dustin 2024-10-13 18:35:01 -05:00
parent 221d3a2be9
commit 5ab0bcd5bf
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ Dav off
Options -MultiViews
RewriteRule ^core/js/oc.js$ index.php [PT,E=PATH_INFO:$1]
RewriteRule ^core/preview.png$ index.php [PT,E=PATH_INFO:$1]
RewriteCond %{REQUEST_FILENAME} !\.(css|js|svg|gif|png|html|ttf|woff2?|ico|jpg|jpeg|map|webm|mp4)$
RewriteCond %{REQUEST_FILENAME} !\.(css|js|mjs|svg|gif|png|html|ttf|woff2?|ico|jpg|jpeg|map|webm|mp4)$
RewriteCond %{REQUEST_FILENAME} !core/img/favicon.ico$
RewriteCond %{REQUEST_FILENAME} !core/img/manifest.json$
RewriteCond %{REQUEST_FILENAME} !/remote.php