2025-10-26 18:19:37 +00:00
|
|
|
# Database Configuration
|
|
|
|
|
DATABASE_URL=postgresql://control_reader:secure_password@localhost:5432/calejo
|
|
|
|
|
|
|
|
|
|
# Protocol Endpoints
|
|
|
|
|
OPC_UA_ENDPOINT=opc.tcp://0.0.0.0:4840
|
|
|
|
|
MODBUS_PORT=502
|
|
|
|
|
REST_API_PORT=8080
|
|
|
|
|
|
|
|
|
|
# Safety Settings
|
|
|
|
|
SAFETY_TIMEOUT_SECONDS=1200
|
|
|
|
|
|
|
|
|
|
# Security Settings
|
|
|
|
|
JWT_SECRET_KEY=your-secret-key-change-in-production
|
|
|
|
|
JWT_ALGORITHM=HS256
|
|
|
|
|
|
|
|
|
|
# Alert Settings (Optional)
|
2025-10-27 07:49:07 +00:00
|
|
|
# Email Configuration
|
2025-10-26 18:19:37 +00:00
|
|
|
SMTP_SERVER=smtp.example.com
|
|
|
|
|
SMTP_PORT=587
|
|
|
|
|
SMTP_USERNAME=your-email@example.com
|
|
|
|
|
SMTP_PASSWORD=your-email-password
|
2025-10-27 07:49:07 +00:00
|
|
|
SMTP_USE_TLS=true
|
|
|
|
|
|
|
|
|
|
# SMS Configuration (Twilio)
|
2025-10-26 18:19:37 +00:00
|
|
|
TWILIO_ACCOUNT_SID=your-twilio-account-sid
|
|
|
|
|
TWILIO_AUTH_TOKEN=your-twilio-auth-token
|
|
|
|
|
TWILIO_PHONE_NUMBER=+1234567890
|
|
|
|
|
|
2025-10-27 07:49:07 +00:00
|
|
|
# Webhook Configuration
|
|
|
|
|
ALERT_WEBHOOK_URL=https://your-monitoring-system.com/webhook
|
|
|
|
|
ALERT_WEBHOOK_TOKEN=your_bearer_token
|
|
|
|
|
|
2025-10-26 18:19:37 +00:00
|
|
|
# Logging
|
|
|
|
|
LOG_LEVEL=INFO
|