Refactor backend services and utilities
- Update service layer implementations - Improve configuration handling utilities - Update documentation tasks Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -13,8 +13,11 @@ from typing import Final
|
||||
DEFAULT_FAIL2BAN_SOCKET: Final[str] = "/var/run/fail2ban/fail2ban.sock"
|
||||
"""Default path to the fail2ban Unix domain socket."""
|
||||
|
||||
FAIL2BAN_SOCKET_TIMEOUT_SECONDS: Final[float] = 5.0
|
||||
"""Maximum seconds to wait for a response from the fail2ban socket."""
|
||||
FAIL2BAN_SOCKET_TIMEOUT_FAST: Final[float] = 5.0
|
||||
"""Maximum seconds for fast operations (health checks, metadata probes)."""
|
||||
|
||||
FAIL2BAN_SOCKET_TIMEOUT: Final[float] = 10.0
|
||||
"""Maximum seconds for command operations (config, jail management)."""
|
||||
|
||||
FAIL2BAN_TRUTHY_VALUES: Final[frozenset[str]] = frozenset({"true", "yes", "1"})
|
||||
"""String values treated as boolean true by fail2ban configuration parsers."""
|
||||
|
||||
Reference in New Issue
Block a user