Fix raw action config endpoint shadowed by config router
Rename GET/PUT /api/config/actions/{name} to /actions/{name}/raw in
file_config.py to eliminate the route-shadowing conflict with config.py,
which registers its own GET /actions/{name} returning ActionConfig.
Add configActionRaw endpoint helper in endpoints.ts and update
fetchActionFile/updateActionFile in config.ts to use it. Add
TestGetActionFileRaw and TestUpdateActionFileRaw test classes.
This commit is contained in:
19
Docker/fail2ban-dev-config/fail2ban/jail.d/manual-Jail.conf
Normal file
19
Docker/fail2ban-dev-config/fail2ban/jail.d/manual-Jail.conf
Normal file
@@ -0,0 +1,19 @@
|
||||
# ──────────────────────────────────────────────────────────────
|
||||
# BanGUI — Simulated authentication failure jail
|
||||
#
|
||||
# Watches Docker/logs/auth.log (mounted at /remotelogs/bangui)
|
||||
# for lines produced by Docker/simulate_failed_logins.sh.
|
||||
# ──────────────────────────────────────────────────────────────
|
||||
|
||||
[bangui-sim]
|
||||
|
||||
enabled = true
|
||||
filter = bangui-sim
|
||||
logpath = /remotelogs/bangui/auth.log
|
||||
backend = polling
|
||||
maxretry = 3
|
||||
findtime = 120
|
||||
bantime = 60
|
||||
|
||||
# Never ban localhost, the Docker bridge network, or the host machine.
|
||||
ignoreip = 127.0.0.0/8 ::1 172.16.0.0/12
|
||||
Reference in New Issue
Block a user