Skip to content

Commit fc90808

Browse files
committed
chore(worker): set KV and ratelimit namespace ids in wrangler.toml
1 parent 432307d commit fc90808

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

worker/wrangler.toml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,23 +22,24 @@ GH_APP_ID = "3664188" # set by operator: GitHub App ID (numeric st
2222

2323
[[kv_namespaces]]
2424
binding = "TOKEN_CACHE"
25-
id = "<TOKEN_CACHE_KV_ID>"
25+
id = "e67ca7a88f4a4c9ba39bf8221e106cb7"
2626

2727
[[kv_namespaces]]
2828
binding = "DEAD_LETTER"
29-
id = "<DEAD_LETTER_KV_ID>"
29+
id = "9c8965e7f46d4b74a2f4b620e132019a"
3030

31-
# Burst guard: 5 requests per 60s per ip:product key
31+
# Burst guard: 5 requests per 60s per ip:product key.
32+
# namespace_id is an arbitrary unique integer per binding (account-scoped, not a secret).
3233
[[ratelimits]]
3334
name = "RATE_LIMIT_BURST"
34-
namespace_id = "<RATE_LIMIT_NAMESPACE_ID>"
35+
namespace_id = "1001"
3536
simple = { limit = 5, period = 60 }
3637

3738
# Secondary per-minute guard (wrangler simple.period supports 10 or 60 only).
3839
# True 30-req/day cap is enforced in Worker code via KV counter (T-12).
3940
[[ratelimits]]
4041
name = "RATE_LIMIT_DAILY"
41-
namespace_id = "<RATE_LIMIT_NAMESPACE_ID>"
42+
namespace_id = "1002"
4243
simple = { limit = 30, period = 60 }
4344

4445
[triggers]

0 commit comments

Comments
 (0)