Implement basic ban-API call back to Go-application for handling

This commit is contained in:
Michael Reber
2025-01-29 23:48:06 +01:00
parent 689f3fadd8
commit 3ffd2457ed
5 changed files with 165 additions and 17 deletions

View File

@@ -46,5 +46,8 @@ func RegisterRoutes(r *gin.Engine) {
// Reload endpoint
api.POST("/fail2ban/reload", ReloadFail2banHandler)
// Handle Fail2Ban notifications
api.POST("/ban", BanNotificationHandler)
}
}