63 lines
1.3 KiB
Plaintext
63 lines
1.3 KiB
Plaintext
# Server Configuration
|
|
PORT=5000
|
|
NODE_ENV=development
|
|
|
|
# Database Configuration
|
|
DB_HOST=localhost
|
|
DB_PORT=3306
|
|
DB_USER=root
|
|
DB_PASSWORD=Admin@123
|
|
DB_NAME=ai_agent_iot
|
|
|
|
# JWT Configuration
|
|
JWT_SECRET=Zr8#vP!eK2$9nL@3^aW7xYb*TqM1UzGcR4sDfHjKlQ
|
|
JWT_EXPIRES_IN=24h
|
|
|
|
# Redis Configuration
|
|
REDIS_HOST=localhost
|
|
REDIS_PORT=6379
|
|
REDIS_PASSWORD=
|
|
|
|
# Apache StreamPipes Configuration
|
|
STREAMPIPES_BASE_URL=https://datastream.cloudtopiaa.com
|
|
STREAMPIPES_USERNAME=admin
|
|
STREAMPIPES_PASSWORD=admin
|
|
|
|
# Kafka Configuration
|
|
KAFKA_BROKERS=localhost:9092
|
|
KAFKA_TOPIC_DEVICE_DATA=iot-device-data
|
|
KAFKA_TOPIC_ALERTS=iot-alerts
|
|
|
|
# MQTT Configuration
|
|
MQTT_BROKER=localhost
|
|
MQTT_PORT=1883
|
|
MQTT_USERNAME=
|
|
MQTT_PASSWORD=
|
|
|
|
# Email Configuration (for notifications)
|
|
SMTP_HOST=smtp.gmail.com
|
|
SMTP_PORT=587
|
|
SMTP_USER=your_email@gmail.com
|
|
SMTP_PASS=your_app_password
|
|
|
|
# Twilio Configuration (for SMS notifications)
|
|
TWILIO_ACCOUNT_SID=your_twilio_account_sid
|
|
TWILIO_AUTH_TOKEN=your_twilio_auth_token
|
|
TWILIO_PHONE_NUMBER=+1234567890
|
|
|
|
# AI Agent Configuration
|
|
AI_AGENT_ENABLED=true
|
|
AI_LEARNING_RATE=0.1
|
|
AI_THRESHOLD_ANOMALY=0.8
|
|
AI_HEALING_ENABLED=true
|
|
|
|
# Logging
|
|
LOG_LEVEL=info
|
|
LOG_FILE=logs/app.log
|
|
|
|
# Rate Limiting
|
|
RATE_LIMIT_WINDOW_MS=900000
|
|
RATE_LIMIT_MAX_REQUESTS=100
|
|
|
|
# CORS
|
|
CORS_ORIGIN=http://localhost:3000 |