Files
OpenVPN-Monitoring-Simple/APP_CORE/config.ini
T

30 lines
888 B
INI
Raw Normal View History

2026-01-09 01:05:50 +03:00
[api]
host = 0.0.0.0
2026-02-06 09:02:59 +03:00
port = 5001
2026-01-09 01:05:50 +03:00
debug = false
# Set OVPMON_API_SECRET_KEY or this value; at least 32 characters, random (openssl rand -hex 32). There is no built-in default.
secret_key =
2026-01-09 01:05:50 +03:00
[openvpn_monitor]
2026-02-06 09:02:59 +03:00
log_path = /var/log/openvpn/openvpn-status.log
db_path = openvpn_monitor.db
2026-01-09 01:05:50 +03:00
check_interval = 10
# Optional gatherer reliability settings (defaults shown)
# ticks before a session missing from the status file is forgotten
session_grace_ticks = 3
# status file older than this (TIME line) means OpenVPN is stopped, no clients
status_stale_seconds = 60
# consecutive skipped ticks (bad/missing status file) before logging at ERROR
status_invalid_max = 6
2026-01-09 01:05:50 +03:00
[logging]
level = INFO
2026-02-06 09:02:59 +03:00
log_file = openvpn_gatherer.log
2026-01-09 01:05:50 +03:00
[retention]
raw_retention_days = 7
agg_5m_retention_days = 14
agg_15m_retention_days = 28
agg_1h_retention_days = 90
agg_6h_retention_days = 180
agg_1d_retention_days = 365