#!/bin/bash # Test rapide de l'accès à WaouW echo "=== Test d'accès WaouW ===" # Obtenir l'IP du Pi IP=$(hostname -I | awk '{print $1}') echo "IP du Pi: $IP" # Test accès direct echo "Test accès direct (port 80)..." if curl -s --max-time 5 "http://$IP" >/dev/null; then echo "✅ Accès direct OK" else echo "❌ Accès direct KO" fi # Test API echo "Test API..." if curl -s --max-time 5 "http://$IP/api/health" >/dev/null; then echo "✅ API OK" else echo "❌ API KO" fi # Test Traefik echo "Test Traefik..." if curl -s --max-time 5 "http://$IP" | grep -q "WaouW\|frontend"; then echo "✅ Traefik OK - Interface accessible" else echo "❌ Traefik KO - Interface non accessible" fi echo "=== Fin du test ==="