38 lines
1.4 KiB
Plaintext
38 lines
1.4 KiB
Plaintext
# =============================================================
|
||
# MPM – Beispiel-Umgebung
|
||
# Kopie als ".env" anlegen und Werte anpassen.
|
||
# HINWEIS: Niemals echte Secrets in das Git-Repository committen.
|
||
# =============================================================
|
||
|
||
# --- PostgreSQL ------------------------------------------------
|
||
POSTGRES_USER=mpm
|
||
POSTGRES_PASSWORD=<sicheres-passwort>
|
||
POSTGRES_DB=mpm
|
||
|
||
# --- Plattform-Container ---------------------------------------
|
||
NODE_ENV=production
|
||
PORT=3000
|
||
# Host-Port, unter dem die Plattform erreichbar ist
|
||
APP_PORT=8080
|
||
# Innerhalb des Compose-Netzes ist der Hostname "postgres".
|
||
# Für lokale Entwicklung (Backend außerhalb Docker): 127.0.0.1
|
||
DATABASE_URL=postgresql://mpm:<sicheres-passwort>@postgres:5432/mpm
|
||
|
||
# --- Sicherheit ------------------------------------------------
|
||
# Session-Gültigkeit in Minuten (kurz halten)
|
||
SESSION_TTL_MINUTES=120
|
||
# "true" sobald die Plattform hinter HTTPS/TLS betrieben wird
|
||
COOKIE_SECURE=false
|
||
# "true", wenn ein Reverse Proxy (Nginx im Container) vorgeschaltet ist
|
||
BEHIND_PROXY=true
|
||
|
||
# --- Initialer Admin (nur beim ersten Start angelegt) -----------
|
||
ADMIN_USERNAME=admin
|
||
ADMIN_EMAIL=admin@example.com
|
||
ADMIN_PASSWORD=<mindestens-10-zeichen>
|
||
|
||
# --- Login-Schutz (optional, mit Defaults) ----------------------
|
||
# LOGIN_MAX_ATTEMPTS=5
|
||
# LOGIN_LOCKOUT_MINUTES=15
|
||
# LOGIN_RATE_LIMIT_ATTEMPTS=10
|
||
# LOGIN_RATE_LIMIT_WINDOW_MINUTES=5 |