Initial release: F2B Control Center v1.0
Dockerized Fail2Ban + dashboard for Nginx Proxy Manager. - Single-container image (fail2ban + Node.js + supervisord) - Pre-built NPM filters: badbot, http-errors, npm-probe, manual-bans - Web dashboard with live ban feed, log scanner, AbuseIPDB integration - Configurable via environment variables and .env file - Persistent volumes for config and ban history - Webhook support for ban event notifications - README, .gitignore, MIT license Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
11
healthcheck.sh
Normal file
11
healthcheck.sh
Normal file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
# Docker HEALTHCHECK — passes only if both fail2ban and dashboard are responding.
|
||||
set -e
|
||||
|
||||
# Check fail2ban daemon is alive
|
||||
fail2ban-client ping > /dev/null 2>&1 || exit 1
|
||||
|
||||
# Check dashboard HTTP endpoint is responding
|
||||
curl -sf --max-time 5 "http://localhost:${PORT:-4000}/api/bans" > /dev/null 2>&1 || exit 1
|
||||
|
||||
exit 0
|
||||
Reference in New Issue
Block a user