-
Notifications
You must be signed in to change notification settings - Fork 613
feat: add more cloudflare ratelimits #2636
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -54,12 +54,35 @@ type = "ratelimit" | |
| namespace_id = "99003060" | ||
| simple = { limit = 30, period = 60} | ||
|
|
||
| [[unsafe.bindings]] | ||
| name = "RL_50_60s" | ||
| type = "ratelimit" | ||
| namespace_id = "99005060" | ||
| simple = { limit = 50, period = 60} | ||
|
|
||
|
|
||
| [[unsafe.bindings]] | ||
| name = "RL_200_60s" | ||
| type = "ratelimit" | ||
| namespace_id = "990020060" | ||
| simple = { limit = 200, period = 60} | ||
|
|
||
|
|
||
| [[unsafe.bindings]] | ||
| name = "RL_600_60s" | ||
| type = "ratelimit" | ||
| namespace_id = "990060060" | ||
| simple = { limit = 600, period = 60} | ||
|
|
||
|
|
||
|
|
||
| [[unsafe.bindings]] | ||
| name = "RL_1_10s" | ||
| type = "ratelimit" | ||
| namespace_id = "9900110" | ||
| simple = { limit = 1, period = 10} | ||
|
|
||
|
|
||
| [[unsafe.bindings]] | ||
| name = "RL_500_10s" | ||
| type = "ratelimit" | ||
|
|
@@ -119,12 +142,33 @@ type = "ratelimit" | |
| namespace_id = "99003060" | ||
| simple = { limit = 30, period = 60} | ||
|
|
||
| [[env.preview.unsafe.bindings]] | ||
| name = "RL_50_60s" | ||
| type = "ratelimit" | ||
| namespace_id = "99005060" | ||
| simple = { limit = 50, period = 60} | ||
|
|
||
|
|
||
| [[env.preview.unsafe.bindings]] | ||
| name = "RL_200_60s" | ||
| type = "ratelimit" | ||
| namespace_id = "990020060" | ||
| simple = { limit = 200, period = 60} | ||
|
|
||
| [[env.preview.unsafe.bindings]] | ||
| name = "RL_600_60s" | ||
| type = "ratelimit" | ||
| namespace_id = "990060060" | ||
| simple = { limit = 600, period = 60} | ||
|
|
||
|
|
||
| [[env.canary.unsafe.bindings]] | ||
| name = "RL_1_10s" | ||
| type = "ratelimit" | ||
| namespace_id = "9900110" | ||
| simple = { limit = 1, period = 10} | ||
|
|
||
|
Comment on lines
+165
to
+170
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Move misplaced binding to correct environment section The Move this binding to the preview environment section, just before the existing |
||
|
|
||
| [[env.preview.unsafe.bindings]] | ||
| name = "RL_500_10s" | ||
| type = "ratelimit" | ||
|
|
@@ -178,12 +222,33 @@ type = "ratelimit" | |
| namespace_id = "99003060" | ||
| simple = { limit = 30, period = 60} | ||
|
|
||
| [[env.canary.unsafe.bindings]] | ||
| name = "RL_50_60s" | ||
| type = "ratelimit" | ||
| namespace_id = "99005060" | ||
| simple = { limit = 50, period = 60} | ||
|
|
||
|
|
||
| [[env.canary.unsafe.bindings]] | ||
| name = "RL_200_60s" | ||
| type = "ratelimit" | ||
| namespace_id = "990020060" | ||
| simple = { limit = 200, period = 60} | ||
|
|
||
| [[env.canary.unsafe.bindings]] | ||
| name = "RL_600_60s" | ||
| type = "ratelimit" | ||
| namespace_id = "990060060" | ||
| simple = { limit = 600, period = 60} | ||
|
|
||
|
|
||
| [[env.canary.unsafe.bindings]] | ||
| name = "RL_1_10s" | ||
| type = "ratelimit" | ||
| namespace_id = "9900110" | ||
| simple = { limit = 1, period = 10} | ||
|
|
||
|
|
||
| [[env.canary.unsafe.bindings]] | ||
| name = "RL_500_10s" | ||
| type = "ratelimit" | ||
|
|
@@ -240,12 +305,33 @@ type = "ratelimit" | |
| namespace_id = "99003060" | ||
| simple = { limit = 30, period = 60} | ||
|
|
||
|
|
||
| [[env.production.unsafe.bindings]] | ||
| name = "RL_50_60s" | ||
| type = "ratelimit" | ||
| namespace_id = "99005060" | ||
| simple = { limit = 50, period = 60} | ||
|
|
||
| [[env.production.unsafe.bindings]] | ||
| name = "RL_200_60s" | ||
| type = "ratelimit" | ||
| namespace_id = "990020060" | ||
| simple = { limit = 200, period = 60} | ||
|
|
||
| [[env.production.unsafe.bindings]] | ||
| name = "RL_600_60s" | ||
| type = "ratelimit" | ||
| namespace_id = "990060060" | ||
| simple = { limit = 600, period = 60} | ||
|
|
||
|
|
||
| [[env.production.unsafe.bindings]] | ||
| name = "RL_1_10s" | ||
| type = "ratelimit" | ||
| namespace_id = "9900110" | ||
| simple = { limit = 1, period = 10} | ||
|
|
||
|
|
||
| [[env.production.unsafe.bindings]] | ||
| name = "RL_500_10s" | ||
| type = "ratelimit" | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix namespace_id format inconsistency
The namespace_id for
RL_1_10sdoesn't follow the established 9-digit format used by other rate limiters. It should be99000110(9 digits) instead of9900110(7 digits) to maintain consistency with the pattern9900{limit}{duration}.Apply this fix:
📝 Committable suggestion