blumeops/fly/fail2ban/jail.d/forge.conf
Erich Blume 52f0308f1a Fix fail2ban crash: disable default sshd jail, make non-fatal
Alpine's fail2ban ships with sshd jail enabled by default. Since there's
no SSH server in the Fly.io container, fail2ban exits with an error
looking for sshd logs — crashing the container via set -e.

Disable the sshd jail explicitly and make fail2ban startup non-fatal
since nginx rate limiting is the primary defense.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-03 08:29:33 -08:00

12 lines
254 B
Text

# Disable the default sshd jail — no SSH server in this container
[sshd]
enabled = false
[forge-login]
enabled = true
filter = forge-login
logpath = /var/log/nginx/access.json.log
maxretry = 5
findtime = 600
bantime = 3600
banaction = nginx-deny