-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
51 lines (43 loc) · 1.33 KB
/
.env.example
File metadata and controls
51 lines (43 loc) · 1.33 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
# CyberPower PDU Bridge Configuration
# See docs/configuration.md for full documentation
# PDU SNMP settings (single-PDU mode — overridden by pdus.json for multi-PDU)
PDU_HOST=192.168.20.177
PDU_SNMP_PORT=161
PDU_COMMUNITY_READ=public
PDU_COMMUNITY_WRITE=private
# PDU_DEVICE_ID= # Optional — auto-assigned as pdu-01, pdu-02, etc.
# Serial transport (optional — leave empty to disable)
# PDU_SERIAL_PORT= # e.g., /dev/ttyUSB0
# PDU_SERIAL_BAUD=9600
# PDU_SERIAL_USERNAME=cyber
# PDU_SERIAL_PASSWORD=cyber
# PDU_TRANSPORT=snmp # snmp, serial, or both
# MQTT settings
MQTT_BROKER=mosquitto
MQTT_PORT=1883
# MQTT_USERNAME=
# MQTT_PASSWORD=
# Bridge settings
BRIDGE_POLL_INTERVAL=1.0
BRIDGE_MOCK_MODE=false
BRIDGE_LOG_LEVEL=INFO
BRIDGE_SNMP_TIMEOUT=2.0
BRIDGE_SNMP_RETRIES=1
# Web UI
BRIDGE_WEB_PORT=8080
# BRIDGE_WEB_PASSWORD= # Set to enable dashboard authentication
# BRIDGE_WEB_USERNAME=admin
# History / Reports
HISTORY_RETENTION_DAYS=60
HOUSE_MONTHLY_KWH=0
# BRIDGE_REPORTS_ENABLED=true
# BRIDGE_REPORTS_PATH=./reports # Host directory for PDF reports
# InfluxDB settings (optional)
INFLUXDB_URL=http://influxdb:8086
INFLUXDB_ORG=cyber-pdu
INFLUXDB_BUCKET=pdu
INFLUXDB_ADMIN_USER=admin
INFLUXDB_ADMIN_PASSWORD=changeme123
INFLUXDB_ADMIN_TOKEN=cyber-pdu-admin-token
# Telegraf
TELEGRAF_MQTT_BROKER=tcp://mosquitto:1883