❄️ Dotfiles for our NixOS system configuration.

chore(services:fail2ban): add back comments

Chloe aad00b94 caf37d92

Changed files
+2 -2
services
fail2ban
+2 -2
services/fail2ban/default.nix
···
"fail2ban/action.d/abuseipdb-agenix.conf".text = ''
[Definition]
# Report IP to AbuseIPDB, reading API key from Agenix secret file
-
# Simple version without <matches> to avoid parameter substitution issues
# Uses double quotes to allow shell expansion of $(cat /run/agenix/abuseipdb)
-
actionban = sleep 1; curl --fail 'https://api.abuseipdb.com/api/v2/report' -H 'Accept: application/json' -H "Key: $(cat /run/agenix/abuseipdb)" --data-urlencode 'ip=<ip>' --data 'categories=<abuseipdb_category>'
+
# Sleep 12 seconds to respect AbuseIPDB rate limit (~5 requests per minute)
+
actionban = sleep 12; curl --fail 'https://api.abuseipdb.com/api/v2/report' -H 'Accept: application/json' -H "Key: $(cat /run/agenix/abuseipdb)" --data-urlencode 'ip=<ip>' --data-urlencode 'comment=<matches>' --data 'categories=<abuseipdb_category>'
actionstart =
actionstop =