4.0 KiB
4.0 KiB
Améliorations des Scripts - LeCoffre Node
✅ Scripts Améliorés (2025-09-25)
1. Script start.sh
- AMÉLIORÉ
Nouvelles Fonctionnalités Ajoutées :
🔧 Tests d'URLs Complets Intégrés :
- ✅ URLs internes : 12 services Docker testés
- ✅ URLs externes : 6 endpoints publics testés
- ✅ APIs externes : 3 endpoints backend testés
- ✅ WebSockets : 1 connexion bootstrap testée
- ✅ Services externes : 3 dépendances testées
- ✅ API POST : Test de l'endpoint IdNot avec données POST
📊 Rapport Détaillé :
- ✅ Compteurs d'URLs accessibles/échouées
- ✅ Support des codes HTTP multiples (200, 301, 302, 307, 308)
- ✅ Timeouts adaptés par type de service
- ✅ Messages d'erreur détaillés
🔍 Progression Détaillée Améliorée :
- ✅ Tests d'URLs internes dans
show_detailed_progress()
- ✅ Tests d'URLs externes étendus
- ✅ Tests d'APIs externes ajoutés
- ✅ Tests WebSocket améliorés
- ✅ Tests des services externes ajoutés
URLs Testées (25+ endpoints) :
URLs Internes :
http://localhost:8000/tweaks/1
- BlindBit Oracle APIhttp://localhost:8081/health
- SDK Storage Healthhttp://localhost:8091/
- SDK Relay WebSockethttp://localhost:8090/
- SDK Relay HTTPhttp://localhost:3004/
- LeCoffre Frontend (root)http://localhost:3004/login
- LeCoffre Frontend (login)http://localhost:3004/lecoffre/
- LeCoffre Frontend (app)http://localhost:3003/
- IHM Clienthttp://localhost:3005/api/health
- Grafana Healthhttp://localhost:3005/
- Grafana Dashboardhttp://localhost:3100/ready
- Loki Healthhttp://localhost:3006/api
- Status API
URLs Externes :
https://dev4.4nkweb.com/
- Site Principalhttps://dev4.4nkweb.com/status/
- Page de Statuthttps://dev4.4nkweb.com/grafana/
- Dashboard Grafanahttps://dev4.4nkweb.com/lecoffre/
- Application LeCoffrehttps://dev4.4nkweb.com/lecoffre/login
- Login LeCoffrehttps://dev4.4nkweb.com/lecoffre/authorized-client
- Callback d'authentification
APIs Externes :
https://dev3.4nkweb.com/api/v1/health
- API Backend Healthhttps://dev3.4nkweb.com/api/v1/status
- API Backend Statushttps://dev3.4nkweb.com/api/v1/idnot/state
- IdNot State API (POST)
WebSockets :
wss://dev3.4nkweb.com/ws/
- Bootstrap Relay
Services Externes :
https://mempool2.4nkweb.com/
- Mempool Signethttps://qual-connexion.idnot.fr/
- Service IdNothttps://qual-connexion.idnot.fr/IdPOAuth2/authorize/idnot_idp_v1
- IdNot Authorization
2. Documentation URL-HEALTH-CHECKING.md
- MISE À JOUR
Améliorations Apportées :
- ✅ Ajout d'une section sur les améliorations du script
start.sh
- ✅ Mise à jour des exemples d'utilisation
- ✅ Documentation des nouvelles fonctionnalités
- ✅ Recommandation d'utiliser
start.sh
comme script principal
🎯 Résultat Final
Avant les Améliorations :
- ❌ Tests d'URLs limités (4 URLs publiques)
- ❌ Pas de tests d'APIs externes
- ❌ Pas de tests WebSocket
- ❌ Pas de tests de services externes
- ❌ Pas de rapport détaillé
Après les Améliorations :
- ✅ 25+ URLs testées (internes + externes)
- ✅ Tests d'APIs complets (GET + POST)
- ✅ Tests WebSocket intégrés
- ✅ Tests de services externes (dépendances)
- ✅ Rapport détaillé avec compteurs
- ✅ Support codes HTTP multiples
- ✅ Timeouts adaptés par service
🚀 Utilisation Recommandée
cd /home/debian/4NK_env/scripts/lecoffre_node
./start.sh
Ce script unique fournit maintenant :
- ✅ Démarrage séquentiel des services
- ✅ Vérification des variables d'environnement
- ✅ Tests complets d'URLs après stabilisation
- ✅ Rapport détaillé de l'état du système
- ✅ Gestion d'erreurs robuste
Date : 2025-09-25 Statut : ✅ Scripts améliorés et documentés Impact : Script de démarrage unifié avec tests complets