caddy-ratelimit icon indicating copy to clipboard operation
caddy-ratelimit copied to clipboard

i am using to created many zone, how to generate events system only per some zone ?

Open ta2013 opened this issue 1 year ago • 2 comments

i am using to created many zone. in real use case: not all zone be blocked, so how to generate events system only for those zone (or not generate 429, error…)?

Thanks

ta2013 avatar Sep 02 '24 11:09 ta2013

I'm not sure I understand. can you explain your question more?

mholt avatar Sep 02 '24 11:09 mholt

I have one o rate limits below, this configuration sets a rate limit for requests, allowing up to 10 requests per minute for the specified paths. It should nice to designed for notification purposes and does not block requests.

rate_limit_notify { rate_limit { zone notify_zone { match { path /api/version2/request-token } key {path} window 1m events 10 } } }

ta2013 avatar Sep 02 '24 13:09 ta2013