2

Add on-demand IP investigation and richer IP details

This commit is contained in:
2026-03-12 01:53:44 +01:00
parent 33dd9bac76
commit c5e1c4ff36
13 changed files with 1561 additions and 144 deletions

View File

@@ -12,6 +12,7 @@ import (
"syscall"
"git.dern.ovh/infrastructure/caddy-opnsense-blocker/internal/config"
"git.dern.ovh/infrastructure/caddy-opnsense-blocker/internal/investigation"
"git.dern.ovh/infrastructure/caddy-opnsense-blocker/internal/opnsense"
"git.dern.ovh/infrastructure/caddy-opnsense-blocker/internal/service"
"git.dern.ovh/infrastructure/caddy-opnsense-blocker/internal/store"
@@ -46,8 +47,9 @@ func run() error {
if cfg.OPNsense.Enabled {
blocker = opnsense.NewClient(cfg.OPNsense)
}
investigator := investigation.New(cfg.Investigation, logger)
svc := service.New(cfg, database, blocker, logger)
svc := service.New(cfg, database, blocker, investigator, logger)
handler := web.NewHandler(svc)
httpServer := &http.Server{
Addr: cfg.Server.ListenAddress,