Skip to content

Commit 5eed5f8

Browse files
committed
Updated scripts
1 parent 0b12878 commit 5eed5f8

File tree

8 files changed

+1258
-40
lines changed

8 files changed

+1258
-40
lines changed

.env.development

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# EmailEngine Development Environment Configuration
2+
# This file contains default settings for local development
3+
4+
# ===========================================
5+
# BASIC CONFIGURATION
6+
# ===========================================
7+
8+
# Encryption secret (use default for development)
9+
EENGINE_SECRET=default-dev-secret-change-in-production
10+
11+
# Redis connection (no password for development)
12+
EENGINE_REDIS=redis://redis:6379/2
13+
14+
# Number of worker processes (lower for development)
15+
EENGINE_WORKERS=2
16+
17+
# EmailEngine settings for development
18+
EENGINE_SETTINGS={"smtpServerEnabled": true, "smtpServerPort": 2525, "smtpServerHost": "0.0.0.0", "smtpServerAuthEnabled": true, "smtpServerPassword": "devpassword"}
19+
20+
# ===========================================
21+
# SERVICE EXPOSURE
22+
# ===========================================
23+
24+
# Bind to all interfaces for development
25+
EMAILENGINE_API_BIND=0.0.0.0
26+
EMAILENGINE_SMTP_BIND=0.0.0.0
27+
EMAILENGINE_IMAP_BIND=0.0.0.0
28+
29+
# ===========================================
30+
# REDIS CONFIGURATION
31+
# ===========================================
32+
33+
# Redis is used as a database, not a cache
34+
# No memory limit is set for development
35+
# Eviction policy is set to 'noeviction' to prevent data loss
36+
37+
# ===========================================
38+
# LOGGING
39+
# ===========================================
40+
41+
EENGINE_LOG_LEVEL=debug
42+
REDIS_LOG_LEVEL=notice
43+
44+
# ===========================================
45+
# HEALTH CHECKS (RELAXED FOR DEVELOPMENT)
46+
# ===========================================
47+
48+
REDIS_HEALTHCHECK=service_started
49+
HEALTHCHECK_INTERVAL=60s

.env.production

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
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

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ config/development*
1111
.okta.env
1212
system.env
1313
keylog.txt
14-
14+
.claude
15+
.vscode

0 commit comments

Comments
 (0)