1 Commits

Author SHA1 Message Date
fabriziosalmi
734a89b00c fix: improve error handling and whitelist localhost in caddy_mib middleware
- Updated `extractStatusCodeFromError` to handle error message format correctly.
- Added `::1` and `127.0.0.1` to the whitelist to exclude localhost from banning.
- Increased ban duration to 30 seconds globally and 60 seconds for `/api`.
- Set `log_level` to `info` to reduce log noise in production.
- Replaced `file_server` with a `handle` directive to return "Hello World" with a 200 status code for allowed requests.
2025-01-20 22:45:42 +01:00