diff --git a/README.md b/README.md index 1c76f2f..a5575b1 100644 --- a/README.md +++ b/README.md @@ -56,9 +56,24 @@ export FLASK_SECRET_KEY="your-super-secret-key-change-this-in-production" export ADMIN_PASSWORD="your-secure-admin-password" ``` -### Docker (empfohlen) +### Health-Check -- Build: +Für Container-Monitoring steht ein dedizierter Health-Check-Endpunkt zur Verfügung: + +- **URL:** `/health` +- **Antwort:** JSON mit Status und Zeitstempel +- **Logging:** **Wird NICHT geloggt** (keine Statistiken) +- **Verwendung:** Docker Health-Checks, Load Balancer, Monitoring-Tools + +Beispiel-Antwort: +```json +{ + "status": "healthy", + "timestamp": "2025-08-20T09:15:30.123456" +} +``` + +### Docker (empfohlen) ```bash docker build -t wordle-cheater . @@ -70,7 +85,7 @@ docker build -t wordle-cheater . docker run --rm -p 8000:8000 wordle-cheater ``` -- Health‑Check (lokal): `http://localhost:8000/` +- Health‑Check (lokal): `http://localhost:8000/health` - Admin‑Dashboard: `http://localhost:8000/stats` (passwortgeschützt) Hinweise: