A tutorial I found helpful in setting up Fail2ban for Forgejo.