-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
187 lines (147 loc) · 6.11 KB
/
Copy path.env.example
File metadata and controls
187 lines (147 loc) · 6.11 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
# Environment Configuration Template
# Copy this file to .env and fill in your actual values
# ==============================================================================
# DATABASE CONFIGURATION
# ==============================================================================
# PostgreSQL Configuration
POSTGRES_HOST=postgres
POSTGRES_DB=energy_tracking
POSTGRES_USER=postgres
POSTGRES_PASSWORD=your_secure_postgres_password_here
# ==============================================================================
# INFLUXDB CONFIGURATION
# ==============================================================================
# InfluxDB Configuration
INFLUXDB_URL=http://influxdb:8086
INFLUXDB_TOKEN=your_influxdb_token_here_must_be_long_enough
INFLUXDB_ORG=energy-org
INFLUXDB_BUCKET=iot-data
INFLUXDB_USERNAME=admin
INFLUXDB_PASSWORD=your_secure_influxdb_password_here
INFLUXDB_RETENTION=104w
# ==============================================================================
# CACHE & MESSAGE BROKER
# ==============================================================================
# Redis Configuration
REDIS_URL=redis://:your_redis_password@redis:6379
REDIS_PASSWORD=your_secure_redis_password_here
# ==============================================================================
# MQTT BROKER CONFIGURATION
# ==============================================================================
# MQTT Configuration
MQTT_BROKER=mosquitto
MQTT_PORT=1883
MQTT_SSL_PORT=8883
MQTT_USERNAME=iot_user
MQTT_PASSWORD=your_secure_mqtt_password_here
# ==============================================================================
# APPLICATION SECRETS
# ==============================================================================
# API Security
SECRET_KEY=your_super_secret_key_for_jwt_tokens_change_in_production
JWT_ALGORITHM=HS256
JWT_EXPIRE_MINUTES=30
# CORS Configuration
CORS_ORIGINS=http://localhost:3000,https://yourdomain.com
# ==============================================================================
# FRONTEND CONFIGURATION
# ==============================================================================
# Frontend URLs
FRONTEND_API_URL=https://api.yourdomain.com
FRONTEND_WS_URL=wss://api.yourdomain.com/ws
# ==============================================================================
# EMAIL CONFIGURATION
# ==============================================================================
# SMTP Configuration for Notifications
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_USERNAME=your_email@gmail.com
SMTP_PASSWORD=your_app_password_here
SMTP_USE_TLS=true
# Email Settings
DEFAULT_FROM_EMAIL=noreply@yourdomain.com
ADMIN_EMAIL=admin@yourdomain.com
# ==============================================================================
# MONITORING & VISUALIZATION
# ==============================================================================
# Grafana Configuration
GRAFANA_ADMIN_PASSWORD=your_secure_grafana_password_here
GRAFANA_SECRET_KEY=your_grafana_secret_key_here
GRAFANA_ROOT_URL=https://grafana.yourdomain.com
# ==============================================================================
# SSL/TLS CONFIGURATION
# ==============================================================================
# SSL Certificate paths (for production)
SSL_CERT_PATH=/etc/nginx/ssl/cert.pem
SSL_KEY_PATH=/etc/nginx/ssl/private.key
# Let's Encrypt Configuration
LETSENCRYPT_EMAIL=admin@yourdomain.com
DOMAIN_NAME=yourdomain.com
# ==============================================================================
# LOGGING & MONITORING
# ==============================================================================
# Log Levels (DEBUG, INFO, WARNING, ERROR, CRITICAL)
LOG_LEVEL=INFO
# Sentry Configuration (optional)
SENTRY_DSN=https://your_sentry_dsn_here
# ==============================================================================
# DEVELOPMENT SETTINGS
# ==============================================================================
# Development Mode Settings (set to false in production)
DEBUG=false
RELOAD=false
DEVELOPMENT=false
# ==============================================================================
# SCALING & PERFORMANCE
# ==============================================================================
# Worker Configuration
CELERY_WORKER_CONCURRENCY=4
API_WORKERS=4
# Database Pool Settings
DB_POOL_SIZE=20
DB_MAX_OVERFLOW=30
# ==============================================================================
# BACKUP CONFIGURATION
# ==============================================================================
# Backup Settings
BACKUP_RETENTION_DAYS=30
BACKUP_S3_BUCKET=your-backup-bucket
AWS_ACCESS_KEY_ID=your_aws_access_key
AWS_SECRET_ACCESS_KEY=your_aws_secret_key
AWS_REGION=us-east-1
# ==============================================================================
# EXTERNAL SERVICES
# ==============================================================================
# Third-party API Keys (if needed)
WEATHER_API_KEY=your_weather_api_key_here
ENERGY_PROVIDER_API_KEY=your_energy_api_key_here
# ==============================================================================
# SECURITY SETTINGS
# ==============================================================================
# Rate Limiting
RATE_LIMIT_PER_MINUTE=60
RATE_LIMIT_BURST=10
# Session Configuration
SESSION_TIMEOUT=3600
# ==============================================================================
# FEATURE FLAGS
# ==============================================================================
# Feature Toggles
ENABLE_FORECASTING=true
ENABLE_NOTIFICATIONS=true
ENABLE_ANALYTICS=true
ENABLE_DEVICE_MANAGEMENT=true
# ==============================================================================
# EXAMPLE VALUES FOR DEVELOPMENT
# ==============================================================================
# Uncomment and use these for local development
# POSTGRES_PASSWORD=postgres123
# INFLUXDB_PASSWORD=admin123456
# INFLUXDB_TOKEN=energy-token-12345678901234567890
# REDIS_PASSWORD=redis123
# MQTT_PASSWORD=iot123
# SECRET_KEY=dev-secret-key-not-for-production
# GRAFANA_ADMIN_PASSWORD=admin123
# GRAFANA_SECRET_KEY=grafana-secret-dev
# SMTP_USERNAME=your_test_email@gmail.com
# SMTP_PASSWORD=your_test_app_password