poc3
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user