# OpenCRM – zentrale Konfiguration # ================================== # Kopiere diese Datei zu .env und passe die Werte an. # Diese .env wird sowohl vom Backend (npm run dev) als auch von Docker # Compose verwendet. # ============== PORTS (extern erreichbar auf dem Host) ============== OPENCRM_PORT=3010 # Backend + Frontend (alles unter einer URL) ADMINER_PORT=8090 # Adminer (Datenbank-UI). 8081 ist häufig schon belegt. DB_PORT=3306 # MariaDB extern (für lokale Tools/Dev). 0 = nicht freigeben. # ============== DATEN-PFADE (Bind-Mounts) ============== # Relativ zum Projektverzeichnis. Werden zur Laufzeit angelegt. DATA_DIR=./data DB_DATA_DIR=./data/db UPLOADS_DIR=./data/uploads FACTORY_DEFAULTS_DIR=./data/factory-defaults BACKUPS_DIR=./data/backups # ============== DATENBANK ============== DB_NAME=opencrm DB_USER=opencrm DB_PASSWORD=change-this-password DB_ROOT_PASSWORD=change-this-root-password # Connection-String fürs Backend (im Container = Service-Name `db`) # Im Dev-Modus (npm run dev) lokal: localhost:DB_PORT DATABASE_URL=mysql://root:change-this-root-password@localhost:3306/opencrm # ============== SECURITY ============== # JWT-Secret: min. 32 Zeichen. Generieren: openssl rand -hex 64 JWT_SECRET=change-this-to-a-very-long-random-secret-please-rotate-before-production JWT_EXPIRES_IN=7d # Encryption-Key für Portal-Credentials: GENAU 64 Hex-Zeichen. # Generieren: openssl rand -hex 32 ENCRYPTION_KEY=change-this-to-64-hex-characters-please-rotate-before-production-xx # Server NODE_ENV=development PORT=3001 # Backend-internal Port (Dev: localhost:3001) LISTEN_ADDR=0.0.0.0 # In Docker = 0.0.0.0, in Bare-Metal-Production = 127.0.0.1 # CORS – nur in Production setzen, wenn Frontend auf separater Domain läuft. # Beispiel: CORS_ORIGINS=https://crm.deine-domain.de # CORS_ORIGINS= # ============== ADMINER (DB-UI) ============== # Theme-Auswahl. Verfügbare Designs im offiziellen adminer:latest Image: # adminer-dark, brade, bueltge, dracula, esterka, flat, galkaev, # haeckel, hever, konya, lavender-light, lucas-sandery, mancave, # mvt, nette, ng9, nicu, pappu687, paranoiq, pepa-linha, pokorny, # price, rmsoft, rmsoft_blue, rmsoft_blue-dark, win98 # Empfehlung: dracula (dark) oder adminer-dark – beide modern. ADMINER_DESIGN=dracula