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:
21
README.md
21
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:
|
||||
|
Reference in New Issue
Block a user