-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwrangler.toml
More file actions
86 lines (72 loc) · 1.96 KB
/
wrangler.toml
File metadata and controls
86 lines (72 loc) · 1.96 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
name = "api-proxy"
main = "build/index.js"
compatibility_date = "2026-02-27"
routes = [
{ pattern = "api-proxy.admice.com", custom_domain = true }
]
[build]
command = "cargo install -q worker-build && worker-build --release"
[observability.logs]
enabled = false
[placement]
mode = "smart"
# Secrets (set via: wrangler secret put AUTH_TOKEN)
# AUTH_TOKEN - Authentication bearer token for API requests
# Durable Objects for 8 global regions
# Each region has 10 instances (0-9) for 10x concurrency via hash-based distribution
# DOs are named: {region}-processor-{0-9} (e.g., wnam-processor-0, wnam-processor-1, etc.)
# Western North America
[[durable_objects.bindings]]
name = "WNAM_PROCESSOR"
class_name = "WNAMProcessor"
script_name = "api-proxy"
# Eastern North America
[[durable_objects.bindings]]
name = "ENAM_PROCESSOR"
class_name = "ENAMProcessor"
script_name = "api-proxy"
# Western Europe (EU jurisdiction)
[[durable_objects.bindings]]
name = "WEUR_PROCESSOR"
class_name = "WEURProcessor"
script_name = "api-proxy"
# Eastern Europe (EU jurisdiction)
[[durable_objects.bindings]]
name = "EEUR_PROCESSOR"
class_name = "EEURProcessor"
script_name = "api-proxy"
# Asia-Pacific
[[durable_objects.bindings]]
name = "APAC_PROCESSOR"
class_name = "APACProcessor"
script_name = "api-proxy"
# Oceania
[[durable_objects.bindings]]
name = "OC_PROCESSOR"
class_name = "OCProcessor"
script_name = "api-proxy"
# Africa
[[durable_objects.bindings]]
name = "AF_PROCESSOR"
class_name = "AFProcessor"
script_name = "api-proxy"
# Middle East
[[durable_objects.bindings]]
name = "ME_PROCESSOR"
class_name = "MEProcessor"
script_name = "api-proxy"
# Durable Object migrations
# Named DOs are created on-demand when first accessed
# No explicit migration needed for hash-based distribution
[[migrations]]
tag = "v1"
new_sqlite_classes = [
"WNAMProcessor",
"ENAMProcessor",
"WEURProcessor",
"EEURProcessor",
"APACProcessor",
"OCProcessor",
"AFProcessor",
"MEProcessor",
]