-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv.example
More file actions
65 lines (55 loc) · 1.67 KB
/
env.example
File metadata and controls
65 lines (55 loc) · 1.67 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
# Environment Configuration for Microservices Health Checklist
# Service Configuration
SERVICE_NAME=user-service
SERVICE_VERSION=1.0.0
DEBUG=false
LOG_LEVEL=INFO
PORT=8001
HOST=0.0.0.0
# Database Configuration
DATABASE_URL=postgresql://user:password@postgres:5432/userdb
DB_POOL_SIZE=10
DB_MAX_OVERFLOW=20
DB_POOL_TIMEOUT=30
DB_POOL_RECYCLE=3600
# Redis Configuration
REDIS_URL=redis://redis:6379
REDIS_MAX_CONNECTIONS=20
REDIS_SOCKET_TIMEOUT=5
REDIS_CONNECT_TIMEOUT=5
REDIS_RETRY_ON_TIMEOUT=true
# Security Configuration
JWT_SECRET_KEY=your-super-secret-jwt-key-change-this-in-production
JWT_ALGORITHM=HS256
JWT_EXPIRATION_HOURS=24
CORS_ORIGINS=["*"]
RATE_LIMIT_REQUESTS=100
RATE_LIMIT_WINDOW=60
# Monitoring Configuration
PROMETHEUS_PORT=9090
METRICS_PATH=/metrics
HEALTH_CHECK_INTERVAL=30
ALERT_THRESHOLD_RESPONSE_TIME=200.0
ALERT_THRESHOLD_ERROR_RATE=0.01
# Alerting Configuration
SLACK_WEBHOOK_URL=https://hooks.slack.com/services/YOUR/SLACK/WEBHOOK
EMAIL_SMTP_SERVER=smtp.gmail.com
EMAIL_RECIPIENTS=["admin@yourcompany.com", "devops@yourcompany.com"]
# Circuit Breaker Configuration
CIRCUIT_BREAKER_FAILURE_THRESHOLD=5
CIRCUIT_BREAKER_TIMEOUT=60
CIRCUIT_BREAKER_EXCEPTION=Exception
# Retry Configuration
MAX_RETRIES=3
RETRY_DELAY=1.0
RETRY_BACKOFF_FACTOR=2.0
# Service URLs (for inter-service communication)
USER_SERVICE_URL=http://user-service:8001
ORDER_SERVICE_URL=http://order-service:8002
PAYMENT_SERVICE_URL=http://payment-service:8003
NOTIFICATION_SERVICE_URL=http://notification-service:8004
API_GATEWAY_URL=http://api-gateway:8000
HEALTH_MONITOR_URL=http://health-monitor:8005
# AI Code Generation (for tests)
OPENAI_API_KEY=your-openai-api-key
ANTHROPIC_API_KEY=your-anthropic-api-key