Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
motti87 opened this issue Apr 12, 2024 · 0 comments
Closed

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

motti87 opened this issue Apr 12, 2024 · 0 comments

Comments

@motti87
Copy link

motti87 commented Apr 12, 2024

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 .mjs files 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:

location ~ \.(?:css|js|svg|gif)\$ {
)

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:
3a70f5f

@motti87 motti87 closed this as completed Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant