-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
59 lines (47 loc) · 1.84 KB
/
.env.example
File metadata and controls
59 lines (47 loc) · 1.84 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
# NexusHome IoT Platform - Environment Configuration
# Copy this file to .env and update with your actual values
# Application Environment
ASPNETCORE_ENVIRONMENT=Development
ASPNETCORE_URLS=http://+:8080
# Database Configuration
ConnectionStrings__DefaultConnection=Server=sqlserver,1433;Database=NexusHomeIoT;User=sa;Password=CHANGE_ME_STRONG_PASSWORD;TrustServerCertificate=true;MultipleActiveResultSets=true
SQLSERVER_SA_PASSWORD=CHANGE_ME_STRONG_PASSWORD
# Redis Configuration
ConnectionStrings__Redis=redis:6379,password=CHANGE_ME_REDIS_PASSWORD
REDIS_PASSWORD=CHANGE_ME_REDIS_PASSWORD
# MQTT Broker Configuration
MqttBroker__Host=mqtt-broker
MqttBroker__Port=1883
MqttBroker__Username=nexususer
MqttBroker__Password=CHANGE_ME_MQTT_PASSWORD
MqttBroker__ClientId=NexusHome-Server
MqttBroker__TopicPrefix=nexushome
# JWT Authentication
# Generate a secure 256-bit key: openssl rand -base64 32
JwtAuthentication__SecretKey=GENERATE_RANDOM_256_BIT_KEY_HERE_USE_OPENSSL_RAND_BASE64_32
JwtAuthentication__Issuer=NexusHome.IoT
JwtAuthentication__Audience=NexusHome.Clients
JwtAuthentication__ExpirationMinutes=60
# External APIs
WEATHER_API_KEY=your_openweathermap_api_key_here
# Logging Configuration
Seq__ServerUrl=http://seq:5341
Seq__ApiKey=optional_api_key_for_seq
# InfluxDB Configuration (Time Series Database)
InfluxDB__Url=http://influxdb:8086
InfluxDB__Token=CHANGE_ME_INFLUXDB_TOKEN
InfluxDB__Organization=NexusHome
InfluxDB__Bucket=iot-telemetry
# Grafana Configuration
GF_SECURITY_ADMIN_USER=admin
GF_SECURITY_ADMIN_PASSWORD=CHANGE_ME_GRAFANA_PASSWORD
# Application Settings
App__EnableSwagger=true
App__EnableDetailedErrors=false
App__MaxDevicesPerUser=50
App__TelemetryRetentionDays=90
# Rate Limiting
RateLimit__PermitLimit=100
RateLimit__WindowSeconds=60
# CORS Settings (comma-separated origins)
CORS__AllowedOrigins=http://localhost:3000,http://localhost:5173