-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
66 lines (57 loc) · 2.61 KB
/
.env.example
File metadata and controls
66 lines (57 loc) · 2.61 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
# EventFlow Environment Configuration
# Copy this file to .env and adjust values as needed
# =============================================================================
# Application Settings
# =============================================================================
EVENTFLOW_APP_NAME=EventFlow
EVENTFLOW_ENVIRONMENT=development
EVENTFLOW_DEBUG=true
# =============================================================================
# Server Settings
# =============================================================================
EVENTFLOW_HOST=0.0.0.0
EVENTFLOW_PORT=8000
EVENTFLOW_WORKERS=4
# =============================================================================
# Database Settings
# =============================================================================
EVENTFLOW_DATABASE_URL=postgresql+asyncpg://eventflow:eventflow@localhost:5432/eventflow
EVENTFLOW_DATABASE_POOL_SIZE=20
EVENTFLOW_DATABASE_POOL_OVERFLOW=10
# =============================================================================
# Redis Settings (Message Broker)
# =============================================================================
EVENTFLOW_REDIS_URL=redis://localhost:6379/0
EVENTFLOW_REDIS_MAX_CONNECTIONS=50
# =============================================================================
# Event Processing Settings
# =============================================================================
EVENTFLOW_EVENT_BATCH_SIZE=100
EVENTFLOW_EVENT_FLUSH_INTERVAL_MS=1000
EVENTFLOW_CONSUMER_PREFETCH_COUNT=10
# =============================================================================
# Retry Settings
# =============================================================================
EVENTFLOW_MAX_RETRIES=3
EVENTFLOW_RETRY_DELAY_BASE_MS=1000
EVENTFLOW_RETRY_DELAY_MAX_MS=60000
# =============================================================================
# Dead Letter Queue Settings
# =============================================================================
EVENTFLOW_DLQ_ENABLED=true
EVENTFLOW_DLQ_RETENTION_DAYS=7
# =============================================================================
# Monitoring Settings
# =============================================================================
EVENTFLOW_METRICS_ENABLED=true
EVENTFLOW_METRICS_PORT=9090
EVENTFLOW_TRACING_ENABLED=true
EVENTFLOW_LOG_LEVEL=INFO
EVENTFLOW_LOG_FORMAT=json
# =============================================================================
# Security Settings
# =============================================================================
EVENTFLOW_API_KEY_HEADER=X-API-Key
EVENTFLOW_CORS_ORIGINS=["*"]
EVENTFLOW_RATE_LIMIT_REQUESTS=1000
EVENTFLOW_RATE_LIMIT_WINDOW_SECONDS=60