README: Anleitung für STATS_PASSWORD und Dashboard ergänzt
This commit is contained in:
17
README.md
17
README.md
@@ -12,6 +12,7 @@ Diese moderne Python-Webanwendung (Flask) ermöglicht verschiedene Datumsberechn
|
||||
- **Datum plus/minus X Wochen/Monate**
|
||||
- **Kalenderwoche zu Datum**
|
||||
- **Start-/Enddatum einer Kalenderwoche eines Jahres**
|
||||
- **Statistik-Dashboard mit Passwortschutz unter `/stats`**
|
||||
|
||||
## Installation (lokal)
|
||||
|
||||
@@ -29,6 +30,22 @@ python app.py
|
||||
|
||||
Die App ist dann unter http://localhost:5000 erreichbar.
|
||||
|
||||
## Statistik-Dashboard (/stats) & Passwortschutz
|
||||
|
||||
Das Dashboard ist mit einem statischen Passwort geschützt, das über die Umgebungsvariable `STATS_PASSWORD` gesetzt wird.
|
||||
|
||||
**Beispiel (PowerShell):**
|
||||
```powershell
|
||||
$env:STATS_PASSWORD = "meinSicheresPasswort"
|
||||
python app.py
|
||||
```
|
||||
|
||||
**Für Docker:**
|
||||
```powershell
|
||||
$env:STATS_PASSWORD = "meinSicheresPasswort"
|
||||
docker run -e STATS_PASSWORD=$env:STATS_PASSWORD -p 5000:5000 datumsrechner
|
||||
```
|
||||
|
||||
## Docker (empfohlen für Produktion)
|
||||
|
||||
Die App läuft im Container mit dem WSGI-Server **Gunicorn**:
|
||||
|
Reference in New Issue
Block a user