nginx : sert les fichiers .mjs en text/javascript (worker MapLibre bloqué)
Deploy test / deploy (push) Successful in 1m34s
Deploy test / deploy (push) Successful in 1m34s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
7779d3361e
commit
7d91828da9
1 file changed
+6
@@ -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;
|
||||||
|
|||||||
Reference in new issue
Block a user