jagd-apps/nachsuche/backend/.env.example

41 lines
1.4 KiB
Plaintext

# Server Configuration
PORT=5000
NODE_ENV=development
# Database Configuration
MONGO_URI=mongodb://127.0.0.1:27017/tracking-leaders
# JWT Configuration
# Der Name MUSS zu docker-compose.yml passen. Je App ein EIGENES Secret:
# openssl rand -hex 32
NACHSUCHE_JWT_SECRET=
JWT_EXPIRES_IN=24h
# Admin Initial Password (used by seed.js if admin doesn't exist)
# ADMIN_INITIAL_PASSWORD=secure-password-here
# CORS Configuration (comma-separated for multiple origins)
# Produktiv die echte oeffentliche Herkunft eintragen, nicht localhost —
# APP_URL wird daraus abgeleitet, wenn es nicht gesetzt ist.
CORS_ORIGIN=http://localhost:3000
# Geocoding Configuration (OpenStreetMap Nominatim)
GEOCODE_URL=https://nominatim.openstreetmap.org/search
GEOCODE_USER_AGENT=tracking-leaders-app/1.0 (admin@localhost)
GEOCODE_MIN_DELAY_MS=1100
# Basis-URL der App fuer Links in E-Mails (Passwort-Reset).
# MUSS den Unterpfad enthalten, unter dem die App ausgeliefert wird.
# Ohne diesen Wert wird er aus CORS_ORIGIN + "/nachsuche" zusammengesetzt.
# Produktiv die echte oeffentliche URL inkl. Unterpfad eintragen.
# Leer lassen -> wird aus CORS_ORIGIN + "/nachsuche" gebildet (mit Warnung).
APP_URL=
# SMTP fuer Passwort-Reset-Mails (optional).
# Fehlt die Konfiguration, wird der Reset-Link nur ins Log geschrieben.
# SMTP_HOST=smtp.example.com
# SMTP_PORT=587
# SMTP_USER=noreply@example.com
# SMTP_PASS=
# SMTP_FROM=noreply@example.com