Docs: README für Health-Check-Endpunkt aktualisiert

- Neue Sektion 'Health-Check' mit Details zum /health Endpunkt
- JSON-Beispiel-Antwort dokumentiert
- Klarstellung: Wird NICHT geloggt (keine Statistiken)
- Health-Check-URL von / auf /health aktualisiert
- Verwendungszweck: Docker, Load Balancer, Monitoring-Tools
This commit is contained in:
2025-08-23 11:34:40 +02:00
parent f5b9532c86
commit c0b383b08a

View File

@@ -56,9 +56,24 @@ export FLASK_SECRET_KEY="your-super-secret-key-change-this-in-production"
export ADMIN_PASSWORD="your-secure-admin-password" 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 ```bash
docker build -t wordle-cheater . docker build -t wordle-cheater .
@@ -70,7 +85,7 @@ docker build -t wordle-cheater .
docker run --rm -p 8000:8000 wordle-cheater docker run --rm -p 8000:8000 wordle-cheater
``` ```
- HealthCheck (lokal): `http://localhost:8000/` - HealthCheck (lokal): `http://localhost:8000/health`
- AdminDashboard: `http://localhost:8000/stats` (passwortgeschützt) - AdminDashboard: `http://localhost:8000/stats` (passwortgeschützt)
Hinweise: Hinweise: