1+ # EmailEngine Production Environment Configuration
2+ # Copy this file to .env and configure with your actual values
3+
4+ # ===========================================
5+ # REQUIRED SECURITY SETTINGS
6+ # ===========================================
7+
8+ # Encryption secret for EmailEngine (generate with: openssl rand -hex 32)
9+ EENGINE_SECRET = CHANGE_ME_USE_STRONG_SECRET_HERE
10+
11+ # Redis password (generate with: openssl rand -base64 32)
12+ REDIS_PASSWORD = CHANGE_ME_USE_STRONG_PASSWORD_HERE
13+
14+ # Redis connection with authentication
15+ EENGINE_REDIS = redis://:${ REDIS_PASSWORD } @redis:6379/2
16+
17+ # ===========================================
18+ # EMAILENGINE CONFIGURATION
19+ # ===========================================
20+
21+ # Log level (error, warn, info, debug)
22+ EENGINE_LOG_LEVEL = info
23+
24+ # Number of worker processes (should match CPU cores, min 4, max 24)
25+ EENGINE_WORKERS = 8
26+
27+ # EmailEngine settings (configure SMTP password)
28+ EENGINE_SETTINGS = {"smtpServerEnabled": true, "smtpServerPort": 2525, "smtpServerHost": "0.0.0.0", "smtpServerAuthEnabled": true, "smtpServerPassword": "CHANGE_ME_SMTP_PASSWORD"}
29+
30+ # ===========================================
31+ # SERVICE EXPOSURE (PRODUCTION)
32+ # ===========================================
33+
34+ # Bind only to localhost for production (use reverse proxy for external access)
35+ EMAILENGINE_API_BIND = 127.0.0.1
36+ EMAILENGINE_SMTP_BIND = 127.0.0.1
37+ EMAILENGINE_IMAP_BIND = 127.0.0.1
38+
39+ # Port configuration (optional, defaults shown)
40+ # EMAILENGINE_API_PORT=3000
41+ # EMAILENGINE_SMTP_PORT=2525
42+ # EMAILENGINE_IMAP_PORT=9993
43+
44+ # ===========================================
45+ # REDIS CONFIGURATION
46+ # ===========================================
47+
48+ # Redis is used as a database, not a cache
49+ # No memory limit is set - Redis will use available system memory
50+ # Monitor usage with: docker-compose exec redis redis-cli INFO memory
51+ # Eviction policy is set to 'noeviction' to prevent data loss
52+
53+ # ===========================================
54+ # LOGGING CONFIGURATION
55+ # ===========================================
56+
57+ # Log levels
58+ REDIS_LOG_LEVEL = notice
59+
60+ # Log rotation
61+ LOG_MAX_SIZE = 100m
62+ LOG_MAX_FILE = 10
63+ LOG_COMPRESS = true
64+
65+ # ===========================================
66+ # HEALTH CHECKS
67+ # ===========================================
68+
69+ # Use strict health checks for production
70+ REDIS_HEALTHCHECK = service_healthy
71+
72+ # Health check configuration
73+ HEALTHCHECK_INTERVAL = 30s
74+ HEALTHCHECK_TIMEOUT = 10s
75+ HEALTHCHECK_RETRIES = 3
76+ HEALTHCHECK_START_PERIOD = 40s
77+
78+ # ===========================================
79+ # OTHER SETTINGS
80+ # ===========================================
81+
82+ # Restart policy
83+ RESTART_POLICY = unless-stopped
84+
85+ # Docker image versions (optional, latest by default)
86+ # EMAILENGINE_VERSION=latest
87+ # REDIS_VERSION=7-alpine
0 commit comments