platform-codebase/features/email/backend-api/.env.example

48 lines
1.1 KiB
Text
Executable file

# Server Configuration
NODE_ENV=development
PORT=3011
# CORS Configuration
CORS_ORIGINS=http://localhost:5173,http://localhost:5174
# Database Configuration
DATABASE_POSTGRES_HOST=localhost
DATABASE_POSTGRES_PORT=25432
DATABASE_POSTGRES_USER=postgres
DATABASE_POSTGRES_PASSWORD=postgres
DATABASE_POSTGRES_NAME=lilith_email
# Redis Configuration (for Bull queues)
DATABASE_REDIS_HOST=localhost
DATABASE_REDIS_PORT=26379
DATABASE_REDIS_PASSWORD=
# SMTP Configuration (Outbound Email)
SMTP_HOST=smtp.example.com
SMTP_PORT=587
SMTP_SECURE=false
SMTP_USER=your-email@example.com
SMTP_PASSWORD=your-smtp-password
SMTP_FROM_NAME=Lilith Platform
SMTP_FROM_EMAIL=noreply@lilith.io
# IMAP Configuration (Inbound Email)
IMAP_HOST=imap.example.com
IMAP_PORT=993
IMAP_USER=your-email@example.com
IMAP_PASSWORD=your-imap-password
IMAP_TLS=true
IMAP_CHECK_INTERVAL=60000
# Template Configuration
TEMPLATE_DIR=./templates
# Queue Configuration
QUEUE_EMAIL_CONCURRENCY=5
QUEUE_EMAIL_ATTEMPTS=3
# Service Registry
SERVICE_REGISTRY_URL=http://localhost:3000/api/registry
# Authentication (for inter-service communication)
SERVICE_AUTH_TOKEN=your-service-token-here