-
-
Notifications
You must be signed in to change notification settings - Fork 32
/
wrangler.toml
48 lines (40 loc) · 1.3 KB
/
wrangler.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name = "zwave-js-firmware-updates"
main = "./src/worker.ts"
compatibility_date = "2022-08-28"
kv_namespaces = [
# { binding = "R2_CACHE", id = "a14d0c5671564efda1e3db0e2f98da60" },
{ binding = "API_KEYS", id = "7edd033eda014a5ebdd02aed07f31063" }
]
[[migrations]]
tag = "v1" # Should be unique for each entry
new_classes = ["RateLimiterDurableObject"]
[[migrations]]
tag = "v2"
deleted_classes = ["RateLimiterDurableObject"]
[[r2_buckets]]
binding = "CONFIG_FILES"
bucket_name = "zwave-js-firmware-updates--config-files"
[[unsafe.bindings]]
type = "ratelimit"
# Free ratelimit bucket - 120 requests per hour
name = "RL_FREE"
namespace_id = "1001"
simple = { limit = 2, period = 60 } # <limit> requests per <period> seconds
[[unsafe.bindings]]
type = "ratelimit"
# Ratelimit bucket: 1200 requests per hour
name = "RL_1k"
namespace_id = "1002"
simple = { limit = 20, period = 60 } # <limit> requests per <period> seconds
[[unsafe.bindings]]
type = "ratelimit"
# Ratelimit bucket: 12000 requests per hour
name = "RL_10k"
namespace_id = "1003"
simple = { limit = 200, period = 60 } # <limit> requests per <period> seconds
[[unsafe.bindings]]
type = "ratelimit"
# Ratelimit bucket: 120000 requests per hour
name = "RL_100k"
namespace_id = "1004"
simple = { limit = 2000, period = 60 } # <limit> requests per <period> seconds