-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.production.example
More file actions
55 lines (45 loc) · 1.46 KB
/
.env.production.example
File metadata and controls
55 lines (45 loc) · 1.46 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
# Sample Production Environment Configuration
# Copy this file to .env.production and update with your actual values
# Database Configuration
DATABASE_URL=postgresql://username:password@prod-db-host:5432/energy_tracking?sslmode=require
DB_SSL_MODE=require
DB_CONNECTION_POOL_SIZE=20
# Authentication Service Configuration
AUTH_SERVICE_URL=https://auth.energy-tracking.com
SECRET_KEY=your-32-character-secret-key-here-change-this
JWT_SECRET_KEY=your-jwt-secret-key-at-least-32-chars
JWT_ALGORITHM=HS256
TOKEN_EXPIRY=3600
# Security Configuration
ORGANIZATION_ISOLATION_ENABLED=true
RATE_LIMITING_ENABLED=true
RATE_LIMIT_PER_MINUTE=100
ADMIN_RATE_LIMIT_PER_MINUTE=500
FORCE_HTTPS=true
CORS_ALLOWED_ORIGINS=https://energy-tracking.com,https://app.energy-tracking.com
# Audit and Logging Configuration
AUDIT_LOGGING_ENABLED=true
AUDIT_LOG_LEVEL=INFO
AUDIT_RETENTION_DAYS=90
LOG_LEVEL=INFO
# Monitoring Configuration
METRICS_ENDPOINT=/metrics
HEALTH_CHECK_ENABLED=true
# Performance Configuration
WORKERS=4
CACHE_ENABLED=true
REQUEST_TIMEOUT=60
# Application Configuration
ENVIRONMENT=production
DEBUG=false
DEVELOPMENT_MODE=false
TESTING_MODE=false
# External Services
NOTIFICATION_SERVICE_URL=https://notifications.energy-tracking.com
ANALYTICS_SERVICE_URL=https://analytics.energy-tracking.com
# Optional: Redis for caching and sessions
REDIS_URL=redis://prod-redis-host:6379/0
# Optional: File storage
FILE_STORAGE_BACKEND=s3
AWS_S3_BUCKET=energy-tracking-prod-files
AWS_REGION=us-east-1