Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ main = "src/index.js"

[[ratelimits]]
name = "MY_RATE_LIMITER"
type = "ratelimit"
# An identifier you define, that is unique to your Cloudflare account.
# Must be an integer.
namespace_id = "1001"
Expand Down Expand Up @@ -106,14 +105,12 @@ main = "src/index.js"
# Free user rate limiting
[[ratelimits]]
name = "FREE_USER_RATE_LIMITER"
type = "ratelimit"
namespace_id = "1001"
simple = { limit = 100, period = 60 }

# Paid user rate limiting
[[ratelimits]]
name = "PAID_USER_RATE_LIMITER"
type = "ratelimit"
namespace_id = "1002"
simple = { limit = 1000, period = 60 }
```
Expand All @@ -130,14 +127,11 @@ A rate limiting binding has three settings:

For example, to apply a rate limit of 1500 requests per minute, you would define a rate limiting configuration as follows:



<WranglerConfig>

```toml
[[ratelimits]]
name = "MY_RATE_LIMITER"
type = "ratelimit"
namespace_id = "1001"

# 1500 requests - calls to limit() increment this
Expand Down