fix: correction de la configuration WebSocket pour utiliser VITE_BOOTSTRAPURL au lieu de window.location.origin
All checks were successful
Build and Push Docker image (ext) / docker (push) Successful in 51s

This commit is contained in:
4NK CI Bot 2025-09-19 17:55:39 +00:00
parent 537e627ebc
commit a302149ea8
4 changed files with 5 additions and 3 deletions

View File

@ -34,3 +34,4 @@ Client front (Vite) intégrant un package WASM préconstruit `pkg/` et Nginx

View File

@ -12,7 +12,7 @@ server {
}
location /ws/ {
proxy_pass http://localhost:8090;
proxy_pass http://dev4.4nkweb.com:8090;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
@ -45,4 +45,4 @@ server {
add_header Access-Control-Allow-Methods "GET, POST, OPTIONS, PUT, DELETE" always;
add_header Access-Control-Allow-Headers "Authorization,Content-Type,Accept,X-Requested-With" always;
}
}
}

View File

@ -106,3 +106,4 @@

View File

@ -12,7 +12,7 @@ export const U32_MAX = 4294967295;
const ORIGIN = typeof window !== 'undefined' ? window.location.origin : '';
const BASEURL = import.meta.env.VITE_BASEURL || ORIGIN;
const BOOTSTRAPURL = [import.meta.env.VITE_BOOTSTRAPURL || `${BASEURL}`];
const BOOTSTRAPURL = [import.meta.env.VITE_BOOTSTRAPURL || `ws://${BASEURL}:8090/`];
const STORAGEURL = import.meta.env.VITE_STORAGEURL || `${BASEURL}`;
const BLINDBITURL = import.meta.env.VITE_BLINDBITURL || `${BASEURL}`;
const DEFAULTAMOUNT = 1000n;