custom response example added on Caddyfile (commented) and in the sample JSON source file error.json.

This commit is contained in:
fabriziosalmi
2025-01-25 19:18:35 +01:00
parent 2a5c9c85bd
commit a1d81b88f9
2 changed files with 8 additions and 0 deletions

View File

@@ -22,6 +22,8 @@
block_countries GeoLite2-Country.mmdb RU CN KP
# whitelist_countries GeoLite2-Country.mmdb US
# custom_response 403 application/json error.json
# rate limiter
rate_limit {
requests 100

6
error.json Normal file
View File

@@ -0,0 +1,6 @@
{
"error": {
"code": 403,
"message": "Blocked by caddy-waf"
}
}