-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwrangler.toml
194 lines (167 loc) · 6.88 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
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
#:schema node_modules/wrangler/config-schema.json
name = "labelzoom-cf-api-proxy"
main = "src/index.ts"
compatibility_date = "2024-08-06"
compatibility_flags = ["nodejs_compat"]
tail_consumers = [
{ service = "labelzoom-cf-api-proxy-tail", environment = "production" }
]
[observability.logs]
enabled = true
head_sampling_rate = 0.25
[limits]
cpu_ms = 100
# Automatically place your workloads in an optimal location to minimize latency.
# If you are running back-end logic in a Worker, running it closer to your back-end infrastructure
# rather than the end user may result in better performance.
# Docs: https://developers.cloudflare.com/workers/configuration/smart-placement/#smart-placement
# [placement]
# mode = "smart"
# Variable bindings. These are arbitrary, plaintext strings (similar to environment variables)
# Docs:
# - https://developers.cloudflare.com/workers/wrangler/configuration/#environment-variables
# Note: Use secrets to store sensitive data.
# - https://developers.cloudflare.com/workers/configuration/secrets/
[vars]
LZ_ALLOWED_ORIGINS = [
'https://labelzoom.net',
'https://www.labelzoom.net',
'https://beta.labelzoom.net',
'https://gatsby.labelzoom.net',
]
LZ_LOG_SAMPLE_RATE = 1.0
LZ_PROD_API_BASE_URL = "https://api-backend.labelzoom.net"
# LZ_PROD_API_SECRET_KEY = <SECRET>
[env.beta.vars]
LZ_ALLOWED_ORIGINS = [
'https://labelzoom.net',
'https://www.labelzoom.net',
'https://beta.labelzoom.net',
'https://gatsby.labelzoom.net'
]
LZ_LOG_SAMPLE_RATE = 1.0
LZ_PROD_API_BASE_URL = "https://api-backend.labelzoom.net"
[env.beta.limits]
cpu_ms = 100
[env.public.vars]
LZ_ALLOWED_ORIGINS = [
'https://labelzoom.net',
'https://www.labelzoom.net',
'https://beta.labelzoom.net',
'https://gatsby.labelzoom.net'
]
LZ_LOG_SAMPLE_RATE = 0.0
LZ_PROD_API_BASE_URL = "https://api-backend.labelzoom.net"
[env.public.limits]
cpu_ms = 100
[env.eus1.vars]
LZ_ALLOWED_ORIGINS = [
'https://labelzoom.net',
'https://www.labelzoom.net',
'https://beta.labelzoom.net',
'https://gatsby.labelzoom.net'
]
LZ_LOG_SAMPLE_RATE = 0.0
LZ_PROD_API_BASE_URL = "https://prod-api-eus1-backend.labelzoom.net"
[env.eus1.limits]
cpu_ms = 100
# [env.eus1.placement]
# mode = "smart"
[env.eus2.vars]
LZ_ALLOWED_ORIGINS = [
'https://labelzoom.net',
'https://www.labelzoom.net',
'https://beta.labelzoom.net',
'https://gatsby.labelzoom.net'
]
LZ_LOG_SAMPLE_RATE = 0.001
LZ_PROD_API_BASE_URL = "https://prod-api-eus2-backend.labelzoom.net"
[env.eus2.limits]
cpu_ms = 100
# [env.eus2.placement]
# mode = "smart"
# Bind the Workers AI model catalog. Run machine learning models, powered by serverless GPUs, on Cloudflare’s global network
# Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#workers-ai
# [ai]
# binding = "AI"
# Bind an Analytics Engine dataset. Use Analytics Engine to write analytics within your Pages Function.
# Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#analytics-engine-datasets
# [[analytics_engine_datasets]]
# binding = "MY_DATASET"
# Bind a headless browser instance running on Cloudflare's global network.
# Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#browser-rendering
# [browser]
# binding = "MY_BROWSER"
# Bind a D1 database. D1 is Cloudflare’s native serverless SQL database.
# Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#d1-databases
# [[d1_databases]]
# binding = "MY_DB"
# database_name = "my-database"
# database_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
# Bind a dispatch namespace. Use Workers for Platforms to deploy serverless functions programmatically on behalf of your customers.
# Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#dispatch-namespace-bindings-workers-for-platforms
# [[dispatch_namespaces]]
# binding = "MY_DISPATCHER"
# namespace = "my-namespace"
# Bind a Durable Object. Durable objects are a scale-to-zero compute primitive based on the actor model.
# Durable Objects can live for as long as needed. Use these when you need a long-running "server", such as in realtime apps.
# Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#durable-objects
# [[durable_objects.bindings]]
# name = "MY_DURABLE_OBJECT"
# class_name = "MyDurableObject"
# Durable Object migrations.
# Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#migrations
# [[migrations]]
# tag = "v1"
# new_classes = ["MyDurableObject"]
# Bind a Hyperdrive configuration. Use to accelerate access to your existing databases from Cloudflare Workers.
# Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#hyperdrive
# [[hyperdrive]]
# binding = "MY_HYPERDRIVE"
# id = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
# Bind a KV Namespace. Use KV as persistent storage for small key-value pairs.
# Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#kv-namespaces
# [[kv_namespaces]]
# binding = "MY_KV_NAMESPACE"
# id = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
# Bind an mTLS certificate. Use to present a client certificate when communicating with another service.
# Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#mtls-certificates
# [[mtls_certificates]]
# binding = "MY_CERTIFICATE"
# certificate_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
# Bind a Queue producer. Use this binding to schedule an arbitrary task that may be processed later by a Queue consumer.
# Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#queues
# [[queues.producers]]
# binding = "MY_QUEUE"
# queue = "my-queue"
# Bind a Queue consumer. Queue Consumers can retrieve tasks scheduled by Producers to act on them.
# Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#queues
# [[queues.consumers]]
# queue = "my-queue"
# Bind an R2 Bucket. Use R2 to store arbitrarily large blobs of data, such as files.
# Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#r2-buckets
[[r2_buckets]]
binding = "LZ_R2_BUCKET"
bucket_name = "labelzoom-conversions-dev"
[[env.beta.r2_buckets]]
binding = "LZ_R2_BUCKET"
bucket_name = "labelzoom-conversions-dev"
[[env.public.r2_buckets]]
binding = "LZ_R2_BUCKET"
bucket_name = "labelzoom-conversions-prod"
[[env.eus1.r2_buckets]]
binding = "LZ_R2_BUCKET"
bucket_name = "labelzoom-conversions-prod-eus1"
[[env.eus2.r2_buckets]]
binding = "LZ_R2_BUCKET"
bucket_name = "labelzoom-conversions-prod-eus2"
# Bind another Worker service. Use this binding to call another Worker without network overhead.
# Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#service-bindings
# [[services]]
# binding = "MY_SERVICE"
# service = "my-service"
# Bind a Vectorize index. Use to store and query vector embeddings for semantic search, classification and other vector search use-cases.
# Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#vectorize-indexes
# [[vectorize]]
# binding = "MY_INDEX"
# index_name = "my-index"