❄️ Dotfiles for our NixOS system configuration.

chore(services:fail2ban): try to fix comments (again)

Chloe 375a46ed 9e3750c6

Changed files
+7 -7
services
fail2ban
+7 -7
services/fail2ban/default.nix
···
"fail2ban/action.d/abuseipdb-agenix.conf".text = ''
[Definition]
# Report IP to AbuseIPDB, reading API key from Agenix secret file
-
actionban = lgm=$(printf '%%.1000s\n...' "<matches>"); \
-
curl -sSf "https://api.abuseipdb.com/api/v2/report" \
-
-H "Accept: application/json" \
-
-H "Key: $(cat /run/agenix/abuseipdb)" \
-
--data-urlencode "comment=$lgm" \
-
--data-urlencode "ip=<ip>" \
-
--data "categories=<abuseipdb_category>"
+
# Based on official fail2ban abuseipdb.conf but with API key from Agenix
+
actionban = 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 =