| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- # ============================================================
- # IPMI Monitor - Environment Variables Configuration
- # ============================================================
- # Copy this file to .env and modify values as needed:
- # cp .env.example .env
- # ============================================================
- # ----- InfluxDB Configuration -----
- # InfluxDB admin username
- INFLUXDB_USERNAME=admin
- # InfluxDB admin password (minimum 8 characters)
- INFLUXDB_PASSWORD=admin123456
- # InfluxDB organization name
- INFLUXDB_ORG=ipmi-monitor
- # InfluxDB bucket name for storing metrics
- INFLUXDB_BUCKET=metrics
- # InfluxDB admin API token (change this in production!)
- INFLUXDB_TOKEN=my-super-secret-token
- # InfluxDB host port mapping (host:container)
- INFLUXDB_PORT=8086
- # ----- Backend Configuration -----
- # Backend server host port mapping (host:container)
- BACKEND_PORT=8000
- # Polling interval in seconds for IPMI data collection
- POLL_INTERVAL=60
- # Log level: DEBUG, INFO, WARNING, ERROR, CRITICAL
- LOG_LEVEL=INFO
- # ----- Alert Thresholds -----
- # Temperature alert threshold in °C (0 to disable)
- ALERT_TEMP_THRESHOLD=80
- # Fan speed alert threshold in RPM (0 to disable, alert when below threshold)
- ALERT_FAN_THRESHOLD=0
- # Power consumption alert threshold in Watts (0 to disable, alert when above threshold)
- ALERT_POWER_THRESHOLD=500
- # ----- Email Alert Configuration -----
- # SMTP server host (leave empty to disable email alerts)
- SMTP_HOST=
- # SMTP server port
- SMTP_PORT=587
- # SMTP authentication username
- SMTP_USER=
- # SMTP authentication password
- SMTP_PASSWORD=
- # Sender email address for alerts
- ALERT_EMAIL_FROM=
- # Comma-separated list of recipient email addresses for alerts
- ALERT_EMAIL_TO=
- # ----- Webhook Alert Configuration -----
- # Webhook URL for alert notifications (leave empty to disable)
- # Supports Slack, DingTalk, WeChat Work, or generic webhooks
- WEBHOOK_URL=
|