Skip to content

rules: rate limiting#22

Open
mrl5 wants to merge 11 commits into
pingooio:mainfrom
mrl5:rate-limiter-sliding-window
Open

rules: rate limiting#22
mrl5 wants to merge 11 commits into
pingooio:mainfrom
mrl5:rate-limiter-sliding-window

Conversation

@mrl5

@mrl5 mrl5 commented Jan 3, 2026

Copy link
Copy Markdown

closes #18

overview

pingoo.yml interface

rules:
  rate_limit_api_routes:
    expression: http_request.path.starts_with("/api/")
    actions:
+     - action: limit
+   limit:
+     max: 10
+     period: 60      # in seconds
+     capacity: 1024  # number of IPs that can be tracked

@mrl5 mrl5 mentioned this pull request Jan 3, 2026
@mrl5 mrl5 force-pushed the rate-limiter-sliding-window branch 12 times, most recently from 8ec7c9b to 06e5431 Compare January 7, 2026 23:30
Comment thread pingoo/rate_limiter.rs Outdated
@mrl5 mrl5 force-pushed the rate-limiter-sliding-window branch from dba365a to 808f411 Compare January 11, 2026 20:10
@mrl5 mrl5 force-pushed the rate-limiter-sliding-window branch from 808f411 to f6cad49 Compare January 30, 2026 21:25
@mrl5 mrl5 marked this pull request as ready for review January 30, 2026 21:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support for rate limiting

1 participant