bashclub / zamba-lxc-toolbox

Zamba LXC Toolbox a script collection to setup LXC containers on Proxmox + ZFS. Zamba is the fusion of ZFS and Samba (standalone, active directory dc or active directory member), preconfigured to access ZFS snapshots by "Previous Versions" to easily recover encrypted by ransomware files, accidently deleted files or just to revert changes.
https://aow.de/
GNU General Public License v3.0
289 stars 62 forks source link

Nextcloud nginx Webserver anpassen für ".mjs" #108

Closed motti87 closed 3 months ago

motti87 commented 5 months ago

Bei der Installation (auch von dev) erhält man den Hinweis/Warnung bwzüglich Javascript MIME type .mjs.

Could not check for JavaScript support. Please check manually if your webserver serves.mjsfiles using the JavaScript MIME type.

Kann dies im Script behoben werden?

Dies kann behoben werden, wenn man die folgenden Datein anpasst:

(Müsste im Script noch ergänzt werden, wird von diesem nicht angefasst)

in /etc/nginx/mime.types folgende Zeile hinzufügen: "application/javascript js mjs;" types { application/javascript js mjs; ..... }

und in /etc/nginx/conf.d/nextcloud.conf die "location ~ . (?.css|.......)$" wie folgt anpasst: "location ~ .(?:css|mjs|js|woff2?|svg|gif|map|png|jpg|ico)$"

(Hier reicht die änderung im Skript an dieser Stelle: https://github.com/bashclub/zamba-lxc-toolbox/blob/ccc69b6d55e8b599a4c47d69c3a69af1442348cb/src/nextcloud/install-service.sh#L233 )

location ~ \.(?:css|mjs|js|woff2?|svg|gif|map|png|jpg|ico)$

Besten Dank im Vorhinein & sonnige Grüße aus Wien, Matthias

EDIT: wurde ende April im dev geändert: https://github.com/bashclub/zamba-lxc-toolbox/commit/3a70f5f7b12676a3177948fcbcb222000424f930