From 537e627ebc3620313763de1f54439b8e24cc58f8 Mon Sep 17 00:00:00 2001 From: 4NK CI Bot Date: Fri, 19 Sep 2025 17:04:01 +0000 Subject: [PATCH] ci: docker_tag=ext - Update for dev4 deployment --- .env.exemple | 20 +++++++++++++++++++ docs/ANALYSE.md | 36 +++++++++++++++++++++++++++++++++++ public/authorized-client.html | 5 +++++ 3 files changed, 61 insertions(+) create mode 100644 docs/ANALYSE.md diff --git a/.env.exemple b/.env.exemple index dea2140..922504f 100644 --- a/.env.exemple +++ b/.env.exemple @@ -1,5 +1,25 @@ BOOTSTRAPURL=https://dev4.4nkweb.com/ws/ +# WS +# RELAY_URLS=wss://demo.4nkweb.com/ws +RELAY_URLS=wss://dev4.4nkweb.com/ws + +# SIGNER_WS_URL=ws://dev4.4nkweb.com/signer/ +SIGNER_WS_URL=ws://dev3.4nkweb.com +SIGNER_BASE_URL=https://dev3.4nkweb.com + +core_url="http://bitcoin:38332" +ws_url="0.0.0.0:8090" +wallet_name="default" +network="signet" +blindbit_url="http://blindbit:8000" +zmq_url="tcp://bitcoin:29000" +storage="https://dev4.4nkweb.com/storage" +data_dir="/home/bitcoin/.4nk" +bitcoin_data_dir="/home/bitcoin/.bitcoin" + + # ===================== /!\ donnée sensible ======================= +SIGNER_API_KEY= VITE_JWT_SECRET_KEY= \ No newline at end of file diff --git a/docs/ANALYSE.md b/docs/ANALYSE.md new file mode 100644 index 0000000..d222d77 --- /dev/null +++ b/docs/ANALYSE.md @@ -0,0 +1,36 @@ +## Analyse détaillée + +### Périmètre + +Client front (Vite) intégrant un package WASM pré‑construit `pkg/` et Nginx pour le dev. + +### Stack + +- **Outillage**: Vite 5, TypeScript 5 +- **WASM**: paquet `sdk_client` précompilé (copié dans `pkg/`) +- **UI/Libs**: axios, QR, SweetAlert2, plugins Vite (React/Vue activables) +- **Serveur**: Nginx en dev via `start-dev.sh` + +### Build et exécution + +- Scripts: `build_wasm`, `start` (Vite host 0.0.0.0), `build`, `deploy`. +- Dockerfile: Node 20‑alpine, installe `git` et `nginx`, `npm install`, copie `nginx.dev.conf`, script de démarrage. + +### Ports + +- 3003 (exposition dev), 80 via Nginx. + +### Risques et points d’attention + +- Coexistence double serveur (Vite + Nginx) en dev: veiller au routage, CORS et proxys. +- Paquet WASM précompilé: vérifier cohérence de version avec `sdk_client`. +- Absence de tests automatiques; ajouter stratégie `tests/` (unit/integration). + +### Actions proposées + +- Documenter matrice compatibilité `pkg/` ↔ `sdk_client` (source, commit/tag, date). +- Ajouter lints/tests en CI; unifier serveur dev (proxy Nginx vers Vite ou inverse). +- Paramétrer variables d’env front (URLs relais, API) et fournir `.env.example`. + + + diff --git a/public/authorized-client.html b/public/authorized-client.html index 532b8cd..4f0e69e 100644 --- a/public/authorized-client.html +++ b/public/authorized-client.html @@ -101,3 +101,8 @@ + + + + +