❄️ Dotfiles for our NixOS system configuration.

chore(services:fail2ban): try to fix header key

Chloe caf37d92 d3e51b8c

Changed files
+2 -1
services
fail2ban
+2 -1
services/fail2ban/default.nix
···
[Definition]
# Report IP to AbuseIPDB, reading API key from Agenix secret file
# Simple version without <matches> to avoid parameter substitution issues
-
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>'
actionstart =
actionstop =
···
[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>'
actionstart =
actionstop =