# ─── Port Nimara CRM — DEV environment template ────────────────────────────── # # Copy to `.env` for local development. Values match the docker-compose.dev.yml # defaults (Postgres on :5434, Redis on :6379, MinIO on :9000). # # Integration credentials (Documenso, OpenAI, SMTP, S3, etc.) belong in the # admin UI after first login — see /admin/. The fallbacks at the # bottom are commented out by default to make the admin path obvious. # ─── Required (boot-time) ──────────────────────────────────────────────────── DATABASE_URL=postgresql://crm:changeme@localhost:5434/port_nimara_crm REDIS_URL=redis://:changeme@localhost:6379 BETTER_AUTH_SECRET=dev-secret-please-change-32-chars-minimum-12345678 BETTER_AUTH_URL=http://localhost:3000 CSRF_SECRET=dev-csrf-secret-please-change-32-chars-minimum-12345 # Generated once for local dev. Production uses a different rotated key. EMAIL_CREDENTIAL_KEY=0000000000000000000000000000000000000000000000000000000000000000 APP_URL=http://localhost:3000 NEXT_PUBLIC_APP_URL=http://localhost:3000 NODE_ENV=development LOG_LEVEL=debug # ─── Dev-only safety net ───────────────────────────────────────────────────── # When set, every outbound email is rerouted to this address. # Configure to YOUR personal email so seeded fake-client sends don't escape. # EMAIL_REDIRECT_TO= # Skip env validation (used by Docker build only). # SKIP_ENV_VALIDATION= # ─── Optional integration env fallbacks (admin UI is canonical) ────────────── # Uncomment + set ONLY if you want to bootstrap a port via env. Otherwise # configure each integration via /admin/ after first login. # DOCUMENSO_API_URL=https://documenso.dev.example # DOCUMENSO_API_KEY= # DOCUMENSO_API_VERSION=v2 # DOCUMENSO_WEBHOOK_SECRET= # SMTP_HOST=smtp.example # SMTP_PORT=587 # OPENAI_API_KEY= # Local MinIO (set if NOT using the admin UI to configure storage) # MINIO_ENDPOINT=localhost # MINIO_PORT=9000 # MINIO_ACCESS_KEY=minioadmin # MINIO_SECRET_KEY=minioadmin # MINIO_BUCKET=crm-files # MINIO_USE_SSL=false # MINIO_AUTO_CREATE_BUCKET=true