v.0.11.4
This commit is contained in:
+7
-4
@@ -195,9 +195,9 @@ class Config:
|
||||
session_hours=max(1, _int("SESSION_HOURS", 168)),
|
||||
session_cookie_secure=_bool("SESSION_COOKIE_SECURE", False),
|
||||
analytics_snapshot_interval_seconds=max(
|
||||
15, _int("ANALYTICS_SNAPSHOT_INTERVAL_SECONDS", 60)
|
||||
15, _int("ANALYTICS_SNAPSHOT_INTERVAL_SECONDS", 120)
|
||||
),
|
||||
traffic_archive_interval_seconds=max(1, _int("TRAFFIC_ARCHIVE_INTERVAL_SECONDS", 5)),
|
||||
traffic_archive_interval_seconds=max(1, _int("TRAFFIC_ARCHIVE_INTERVAL_SECONDS", 10)),
|
||||
traffic_archive_lag_seconds=max(2, _int("TRAFFIC_ARCHIVE_LAG_SECONDS", 10)),
|
||||
traffic_archive_batch_size=max(100, min(5000, _int("TRAFFIC_ARCHIVE_BATCH_SIZE", 1000))),
|
||||
redis_url=os.getenv("REDIS_URL", "redis://127.0.0.1:6379/0"),
|
||||
@@ -212,8 +212,11 @@ class Config:
|
||||
redis_snapshot_seconds=max(0, _int("REDIS_SNAPSHOT_SECONDS", 0)),
|
||||
redis_aof=_bool("REDIS_AOF", False),
|
||||
traffic_retention_hours=_int("TRAFFIC_RETENTION_HOURS", 24),
|
||||
traffic_max_events=0,
|
||||
traffic_memory_events=0,
|
||||
# Redis is only a transient queue. Bound the number of normalized
|
||||
# EVE records as well as bytes so a stalled SQLite archive cannot
|
||||
# accumulate an arbitrarily large sorted set.
|
||||
traffic_max_events=max(0, _int("TRAFFIC_MAX_EVENTS", 50000)),
|
||||
traffic_memory_events=max(0, _int("TRAFFIC_MEMORY_EVENTS", 0)),
|
||||
websocket_queue_size=_int("WEBSOCKET_QUEUE_SIZE", 512),
|
||||
live_flow_update_seconds=_float("LIVE_FLOW_UPDATE_SECONDS", 2.0),
|
||||
ndr_enabled=_bool("NDR_ENABLED", True),
|
||||
|
||||
Reference in New Issue
Block a user