feat: plug-and-play refactor — docker-npm action, CF support, whitelist live-update
- Replace iptables-allports with docker-npm action (DOCKER-USER + xt_string X-Forwarded-For matching + INPUT chain) matching user's working setup - Add telegram_notif.sh (deployed to /data/action.d/ at first run, user-editable) - Add cloudflare.conf action; jail.cloudflare.local enabled via CF compose file - Two compose files: docker-compose.yml (standard) and docker-compose.cloudflare.yml - entrypoint: modprobe xt_string, DOCKER-USER chain check, CF jail auto-selection, telegram_notif.sh deployment to persistent volume on first run - Fix whitelist live-update: addignoreip/delignoreip called alongside jail.local write - Hardcode AUTOBAN_THR=75 and DEFAULT_DAYS=3 (remove env vars) - Include Nginx Proxy Manager in both compose files with shared log bind mount - Rewrite filters for actual NPM log format ([Client <HOST>] real IP extraction) - Add DATA_DIR, Telegram, CF API key fields to .env.example Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -43,7 +43,8 @@ COPY supervisor.conf /etc/supervisor/conf.d/f2b-control-center.conf
|
||||
# ── Startup and health ────────────────────────────────────────────────────────
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
COPY healthcheck.sh /healthcheck.sh
|
||||
RUN chmod +x /entrypoint.sh /healthcheck.sh
|
||||
RUN chmod +x /entrypoint.sh /healthcheck.sh \
|
||||
/etc/f2b-defaults/action.d/telegram_notif.sh
|
||||
|
||||
# ── Runtime directories ───────────────────────────────────────────────────────
|
||||
RUN mkdir -p /data /nginx-logs /var/log /var/run/fail2ban
|
||||
|
||||
Reference in New Issue
Block a user