This commit is contained in:
Mateusz Gruszczyński
2026-08-16 11:46:35 +02:00
parent e8e5515e24
commit e5d344622e
22 changed files with 3511 additions and 11 deletions
+12
View File
@@ -49,6 +49,9 @@ class Config:
rule_update_interval_hours: int
web_bind: str
web_port: int
metrics_allowed_ips: str
metrics_basic_auth_username: str
metrics_basic_auth_password: str
db_path: str
eve_path: str
suricata_log_max_mb: int
@@ -135,6 +138,15 @@ class Config:
rule_update_interval_hours=max(0, _int("RULE_UPDATE_INTERVAL_HOURS", 24)),
web_bind=os.getenv("WEB_BIND", "0.0.0.0"),
web_port=_int("WEB_PORT", 8080),
metrics_allowed_ips=os.getenv(
"METRICS_ALLOWED_IPS", "127.0.0.1/32,::1/128"
).strip(),
metrics_basic_auth_username=os.getenv(
"METRICS_BASIC_AUTH_USERNAME", ""
).strip(),
metrics_basic_auth_password=os.getenv(
"METRICS_BASIC_AUTH_PASSWORD", ""
),
db_path=os.getenv("DB_PATH", "/data/ids.db"),
eve_path=os.getenv("EVE_PATH", "/data/logs/suricata/eve.json"),
suricata_log_max_mb=_int("SURICATA_LOG_MAX_MB", 512),