From 7d91828da9e49acee648a306acebb89c4f519dd9 Mon Sep 17 00:00:00 2001 From: Boris Waaub Date: Thu, 26 Nov 2026 15:50:20 +0100 Subject: [PATCH] =?UTF-8?q?nginx=20:=20sert=20les=20fichiers=20.mjs=20en?= =?UTF-8?q?=20text/javascript=20(worker=20MapLibre=20bloqu=C3=A9)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 5.5 --- frontend/nginx.conf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/frontend/nginx.conf b/frontend/nginx.conf index ac3b2b2..57920c2 100644 --- a/frontend/nginx.conf +++ b/frontend/nginx.conf @@ -5,6 +5,12 @@ server { root /usr/share/nginx/html; index index.html; + # Le worker de MapLibre est un module .mjs : le navigateur refuse tout autre type MIME. + include /etc/nginx/mime.types; + types { + text/javascript mjs; + } + # Le back-end tourne dans le même pod que ce conteneur. location ~ ^/(api|admin|static)/ { proxy_pass http://127.0.0.1:8000;