Disable ANSI colors in logs and fix fail2ban regex

- Add with_ansi(false) to all tracing_subscriber fmt layers so log
  output (both stdout and file) is plain text without escape codes.
  This is critical for Docker deployments and fail2ban log parsing.

- Remove ^ anchor from fail2ban failregex since log lines have a
  timestamp/level prefix before RATE_LIMIT.
This commit is contained in:
2026-06-12 10:15:50 +00:00
parent 9ebb8ee7a8
commit c2eefddb4f
2 changed files with 9 additions and 4 deletions

View File

@@ -1,3 +1,3 @@
[Definition]
failregex = ^RATE_LIMIT client_ip=<HOST> host=\S+ path=\S+ status=\d+$
failregex = RATE_LIMIT client_ip=<HOST> host=\S+ path=\S+ status=\d+
ignoreregex =