Add audit logging with weekly rotation

This commit is contained in:
2026-02-08 00:54:29 +03:00
parent 61236b9d60
commit a221393858
5 changed files with 137 additions and 1 deletions

View File

@@ -8,6 +8,7 @@ from services.alerts import monitor_resources, monitor_smart
from services.metrics import MetricsStore, start_sampler
from services.queue import worker as queue_worker
from services.notify import notify
from services.audit import AuditMiddleware
import state
import handlers.menu
import handlers.status
@@ -29,6 +30,7 @@ async def notify_start():
async def main():
dp.update.outer_middleware(AuditMiddleware(cfg))
state.DOCKER_MAP.clear()
state.DOCKER_MAP.update(await discover_containers(cfg))
if cfg.get("docker", {}).get("watchdog", True):