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