Date : 13/01/2026 13:42 Duree : ~20 min Statut : TERMINE
Migrer 01-index.sh (page principale du dashboard) pour utiliser config.json.
Ajout au debut du script JS :
const CONFIG = { ... }; // depuis config.json
const nameMap = Object.fromEntries(
Object.entries(CONFIG.hosts).map(([k, v]) => [k, v.label])
);
function getHostIP(host) { ... }
function getServicePort(service) { ... }
Avant :
const nameMap = { 'pve': 'PVE', 'proxmox1': 'Proxmox', ... };
Apres : Genere dynamiquement depuis CONFIG.hosts
| Element | Avant | Apres |
|---|---|---|
| Alerte nginx | ssh 192.168.1.104 |
ssh ' + getHostIP('nginx') + ' |
| Lien ComfyUI | http://192.168.1.30:8188 |
http://${getHostIP('win11')}:${getServicePort('comfyui')} |
Footer genere depuis config.json (sections Infrastructure et Services). Sections Documentation et Monitoring restent statiques (liens internes).
Avant :
scp ... gouroubleu@192.168.1.104:/tmp/
Apres :
local nginx_ip=$(get_host_ip "nginx")
scp ... ${deploy_user}@${nginx_ip}:/tmp/
| Fichier | Lignes modifiees |
|---|---|
| 01-index.sh | ~85-110 (injection CONFIG) |
| 01-index.sh | ~275 (suppression nameMap) |
| 01-index.sh | ~321 (alerte nginx) |
| 01-index.sh | ~917 (lien ComfyUI) |
| 01-index.sh | ~1289-1365 (footer + deploiement) |
./generate.sh # OK
curl dashboard.33800.nowhere84.com | grep "const CONFIG" # OK
curl dashboard.33800.nowhere84.com | grep "const nameMap" # OK - genere dynamiquement
curl dashboard.33800.nowhere84.com | grep -A 10 '<footer' # OK - IPs depuis config.json
Effort restant : ~2h