Files
LaunchPad/.env.example

42 lines
1.7 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# LaunchPad Umgebungsvariablen
#
# Kopiere diese Datei nach ".env" und trage echte Werte ein:
# cp .env.example .env
#
# ".env" ist in .gitignore und wird NIE committet. Auf dem Server
# (/opt/LaunchPad) muss sie nach dem ersten `git pull` einmalig manuell
# angelegt werden, da git-ignorierte Dateien nicht mitgepullt werden.
# ─── Backend ─────────────────────────────────────────────────────────
# Node-Umgebung: "development" oder "production"
NODE_ENV=production
# Host/Port, auf dem das Backend lauscht (innerhalb des Containers)
HOST=0.0.0.0
PORT=3001
# Pfad zur SQLite-Datenbankdatei (im Docker-Container: das gemountete Volume)
DATABASE_PATH=/data/launchpad.db
# Log-Level für Fastify/Pino: fatal | error | warn | info | debug | trace
LOG_LEVEL=info
# CORS-Origin fürs Frontend. "true" erlaubt alle Origins (Default im lokalen
# Betrieb hinter Nginx unbedenklich). Für strengere Regeln z. B.:
# CORS_ORIGIN=https://launchpad.home
CORS_ORIGIN=true
# ─── FritzBox-Scan (optional) ───────────────────────────────────────
# Nur nötig für POST /api/scan/fritzbox. TR-064-Zugriff muss in der FritzBox
# aktiviert sein: Heimnetz -> Netzwerk -> Netzwerkeinstellungen ->
# "Zugriff für Anwendungen zulassen". Leer lassen = Scan liefert kontrolliert
# HTTP 400 statt zu fehlen.
FRITZBOX_HOST=192.168.1.1
FRITZBOX_PORT=49000
FRITZBOX_USERNAME=
FRITZBOX_PASSWORD=
# ─── Frontend (nur für lokale Entwicklung, `pnpm dev:frontend`) ─────
# Ziel für den Vite-Dev-Proxy von /api -> Backend
BACKEND_URL=http://localhost:3001