mholt / caddy-ratelimit

HTTP rate limiting module for Caddy 2
Apache License 2.0
254 stars 17 forks source link

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

Open ta2013 opened 2 months ago

ta2013 commented 2 months ago

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

mholt commented 2 months ago

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

ta2013 commented 2 months ago

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 } } }