feat: configuration loader with env var overrides
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
# FabledNetMon configuration example
|
||||
# Copy to config.yaml and fill in your values.
|
||||
# Secrets can be set via env vars: FABLEDNETMON_<UPPER__PATH>
|
||||
|
||||
secret_key: "change-me-to-a-random-string"
|
||||
|
||||
database:
|
||||
url: "postgresql+asyncpg://fablednetmon:password@localhost/fablednetmon"
|
||||
|
||||
session:
|
||||
lifetime_hours: 8
|
||||
|
||||
data:
|
||||
retention_days: 90
|
||||
|
||||
# plugin_dir: ./plugins # optional; defaults to ./plugins relative to config.yaml
|
||||
|
||||
plugins: {}
|
||||
# traefik:
|
||||
# enabled: true
|
||||
# metrics_url: "http://localhost:8080/metrics"
|
||||
# scrape_interval_seconds: 60
|
||||
|
||||
smtp:
|
||||
host: ""
|
||||
port: 587
|
||||
tls: true
|
||||
username: ""
|
||||
password: "" # or: FABLEDNETMON_SMTP__PASSWORD env var
|
||||
recipients: []
|
||||
# - admin@example.com
|
||||
|
||||
webhook:
|
||||
url: "" # leave empty to disable
|
||||
template: |
|
||||
{"content": "**{{ alert.state }}** — {{ alert.resource }} — {{ alert.rule_name }} ({{ alert.metric }} = {{ alert.value }})"}
|
||||
Reference in New Issue
Block a user