Author SHA1 Message Date
boris.waaubandClaude Sonnet 5.5 7d91828da9 nginx : sert les fichiers .mjs en text/javascript (worker MapLibre bloqué)
Deploy test / deploy (push) Successful in 1m34s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-26 15:50:20 +01:00
+6
View File
@@ -5,6 +5,12 @@ server {
root /usr/share/nginx/html; root /usr/share/nginx/html;
index index.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. # Le back-end tourne dans le même pod que ce conteneur.
location ~ ^/(api|admin|static)/ { location ~ ^/(api|admin|static)/ {
proxy_pass http://127.0.0.1:8000; proxy_pass http://127.0.0.1:8000;