-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathwrangler.toml
294 lines (263 loc) · 9.64 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
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
name = "freeway"
main = "./dist/worker.mjs"
compatibility_flags = [ "nodejs_compat" ]
compatibility_date = "2024-09-23"
r2_buckets = [
{ binding = "CARPARK", bucket_name = "carpark-dev-0" }
]
[vars]
CONTENT_CLAIMS_SERVICE_URL = "https://dev.claims.web3.storage"
GATEWAY_SERVICE_DID = "did:web:staging.w3s.link"
UPLOAD_SERVICE_DID = "did:web:staging.web3.storage"
UPLOAD_API_URL = "https://staging.up.web3.storage"
[build]
command = "npm run build:debug"
[[unsafe.bindings]]
# TODO BEFORE MERGE - update this to work in all environments - useful to do it like this for now
name = "RATE_LIMITER"
type = "ratelimit"
# An identifier you define, that is unique to your Cloudflare account.
# Must be an integer.
namespace_id = "0"
# Limit: the number of tokens allowed within a given period in a single
# Cloudflare location
# Period: the duration of the period, in seconds. Must be either 10 or 60
simple = { limit = 100, period = 60 }
[[kv_namespaces]]
# TODO BEFORE MERGE - update this to work in all environments - useful to do it like this for now
binding = "AUTH_TOKEN_METADATA"
id = "f848730e45d94f17bcaf3b6d0915da40"
# PROD!
[env.production]
account_id = "fffa4b4363a7e5250af8357087263b3a"
route = { pattern = "https://freeway.dag.haus/*", zone_id = "f2f8a5b1c557202c6e3d0ce0e98e4c8e" }
r2_buckets = [
{ binding = "CARPARK", bucket_name = "carpark-prod-0" }
]
kv_namespaces = [
{ binding = "AUTH_TOKEN_METADATA", id = "f848730e45d94f17bcaf3b6d0915da40" },
{ binding = "CONTENT_SERVE_DELEGATIONS_STORE", id = "b2984f16c21e4991a644683c00d80033" },
{ binding = "DAGPB_CONTENT_CACHE", id = "e1339664614940a0804a3020ce3dae12" }
]
[env.production.build]
command = "npm run build"
[env.production.vars]
MAX_SHARDS = "825"
FF_RATE_LIMITER_ENABLED = "false"
FF_EGRESS_TRACKER_ENABLED = "true"
FF_TELEMETRY_ENABLED = "true"
FF_DELEGATIONS_STORAGE_ENABLED = "true"
FF_RAMP_UP_PROBABILITY = "10"
# Cache for 30 days by default
FF_DAGPB_CONTENT_CACHE_TTL_SECONDS = 2_592_000
FF_DAGPB_CONTENT_CACHE_MAX_SIZE_MB = 2
FF_DAGPB_CONTENT_CACHE_ENABLED = "true"
TELEMETRY_RATIO = 0.0005
GATEWAY_SERVICE_DID = "did:web:w3s.link"
UPLOAD_SERVICE_DID = "did:web:web3.storage"
CONTENT_CLAIMS_SERVICE_URL = "https://claims.web3.storage"
CARPARK_PUBLIC_BUCKET_URL = "https://carpark-prod-0.r2.w3s.link"
UPLOAD_API_URL = "https://up.web3.storage"
INDEXING_SERVICE_URL = "https://indexer.storacha.network/"
[env.production.observability]
enabled = true
head_sampling_rate = 0.01
# Staging!
[env.staging]
account_id = "fffa4b4363a7e5250af8357087263b3a"
route = { pattern = "https://freeway-staging.dag.haus/*", zone_id = "f2f8a5b1c557202c6e3d0ce0e98e4c8e" }
r2_buckets = [
{ binding = "CARPARK", bucket_name = "carpark-staging-0" }
]
kv_namespaces = [
{ binding = "AUTH_TOKEN_METADATA", id = "b618bb05deb8493f944ef4a0f538030c" },
{ binding = "CONTENT_SERVE_DELEGATIONS_STORE", id = "99ae45f8b5b3478a9df09302c27e81a3" },
{ binding = "DAGPB_CONTENT_CACHE", id = "c70a74363e7a4f06ad39fa3022aab7c7" }
]
[env.staging.build]
command = "npm run build"
[env.staging.vars]
MAX_SHARDS = "825"
FF_RATE_LIMITER_ENABLED = "false"
FF_EGRESS_TRACKER_ENABLED = "true"
FF_TELEMETRY_ENABLED = "true"
FF_DELEGATIONS_STORAGE_ENABLED = "false"
FF_RAMP_UP_PROBABILITY = "100"
FF_DAGPB_CONTENT_CACHE_TTL_SECONDS = 300
FF_DAGPB_CONTENT_CACHE_MAX_SIZE_MB = 2
FF_DAGPB_CONTENT_CACHE_ENABLED = "true"
TELEMETRY_RATIO = 1.0
GATEWAY_SERVICE_DID = "did:web:staging.w3s.link"
UPLOAD_SERVICE_DID = "did:web:staging.web3.storage"
CONTENT_CLAIMS_SERVICE_URL = "https://staging.claims.web3.storage"
UPLOAD_API_URL = "https://staging.up.web3.storage"
CARPARK_PUBLIC_BUCKET_URL = "https://carpark-staging-0.r2.w3s.link"
INDEXING_SERVICE_URL = "https://staging.indexer.storacha.network/"
# Test!
[env.test]
workers_dev = true
r2_buckets = [
{ binding = "CARPARK", bucket_name = "carpark-test-0" }
]
[env.test.vars]
DEBUG = "true"
FF_RATE_LIMITER_ENABLED = "false"
FF_EGRESS_TRACKER_ENABLED = "false"
FF_DAGPB_CONTENT_CACHE_ENABLED = "true"
FF_DAGPB_CONTENT_CACHE_MAX_SIZE_MB = 2
FF_DAGPB_CONTENT_CACHE_TTL_SECONDS = 300
FF_TELEMETRY_ENABLED = "true"
TELEMETRY_RATIO = 1.0
FF_RAMP_UP_PROBABILITY = "100"
MAX_SHARDS = "120"
GATEWAY_SERVICE_DID = "did:web:staging.w3s.link"
UPLOAD_SERVICE_DID = "did:web:staging.web3.storage"
CONTENT_CLAIMS_SERVICE_URL = "https://test.claims.web3.storage"
UPLOAD_API_URL = "https://staging.up.web3.storage"
[env.alanshaw]
workers_dev = true
account_id = "4fe12d085474d33bdcfd8e9bed4d8f95"
r2_buckets = [
{ binding = "CARPARK", bucket_name = "carpark-alanshaw-0", preview_bucket_name = "carpark-alanshaw-preview-0" }
]
[env.alanshaw.vars]
DEBUG = "true"
FF_RATE_LIMITER_ENABLED = "false"
FF_EGRESS_TRACKER_ENABLED = "false"
FF_TELEMETRY_ENABLED = "true"
TELEMETRY_RATIO = 1.0
GATEWAY_SERVICE_DID = "did:web:staging.w3s.link"
UPLOAD_SERVICE_DID = "did:web:staging.web3.storage"
CONTENT_CLAIMS_SERVICE_URL = "https://dev.claims.web3.storage"
UPLOAD_API_URL = "https://staging.up.web3.storage"
[env.fforbeck]
name = "freeway-fforbeck"
workers_dev = true
upload_source_maps = true
account_id = "fffa4b4363a7e5250af8357087263b3a"
# r2_buckets = [
# { binding = "CARPARK", bucket_name = "carpark-fforbeck-0", preview_bucket_name = "carpark-fforbeck-preview-0" }
# ]
# r2_buckets = [
# { binding = "CARPARK", bucket_name = "carpark-staging-0" }
# ]
r2_buckets = [
{ binding = "CARPARK", bucket_name = "carpark-prod-0", preview_bucket_name = "carpark-prod-0" }
]
kv_namespaces = [
{ binding = "AUTH_TOKEN_METADATA", id = "b618bb05deb8493f944ef4a0f538030c" },
{ binding = "CONTENT_SERVE_DELEGATIONS_STORE", id = "26cc47fec09749bb9ee42bc6407f9a9d" },
{ binding = "DAGPB_CONTENT_CACHE", id = "3f0c253b90fc48c1b384f1563ede54f9" }
]
[env.fforbeck.vars]
DEBUG = "true"
FF_RATE_LIMITER_ENABLED = "false"
FF_EGRESS_TRACKER_ENABLED = "true"
FF_TELEMETRY_ENABLED = "true"
FF_DELEGATIONS_STORAGE_ENABLED = "true"
FF_RAMP_UP_PROBABILITY = "100"
FF_DAGPB_CONTENT_CACHE_TTL_SECONDS = 300
FF_DAGPB_CONTENT_CACHE_MAX_SIZE_MB = 2
FF_DAGPB_CONTENT_CACHE_ENABLED = "true"
TELEMETRY_RATIO = 1.0
### staging
# CONTENT_CLAIMS_SERVICE_URL = "https://staging.claims.web3.storage"
# CARPARK_PUBLIC_BUCKET_URL = "https://carpark-staging-0.r2.w3s.link"
# GATEWAY_SERVICE_DID = "did:web:staging.w3s.link"
#UPLOAD_SERVICE_DID = "did:web:staging.web3.storage"
#UPLOAD_API_URL = "https://staging.up.web3.storage"
#INDEXING_SERVICE_URL = "https://staging.indexer.storacha.network/"
### prod
CONTENT_CLAIMS_SERVICE_URL = "https://claims.web3.storage"
# CARPARK_PUBLIC_BUCKET_URL = "https://carpark-prod-0.r2.w3s.link"
GATEWAY_SERVICE_DID = "did:web:w3s.link"
UPLOAD_SERVICE_DID = "did:web:web3.storage"
UPLOAD_API_URL = "https://up.web3.storage"
[[env.fforbeck.unsafe.bindings]]
name = "RATE_LIMITER"
type = "ratelimit"
namespace_id = "0"
simple = { limit = 5, period = 60 }
[env.hannahhoward]
name = "freeway-hannahhoward"
workers_dev = true
account_id = "fffa4b4363a7e5250af8357087263b3a"
r2_buckets = [
{ binding = "CARPARK", bucket_name = "carpark-prod-0", preview_bucket_name = "carpark-prod-0" }
]
[env.hannahhoward.vars]
DEBUG = "true"
FF_RATE_LIMITER_ENABLED = "false"
FF_EGRESS_TRACKER_ENABLED = "false"
FF_TELEMETRY_ENABLED = "true"
FF_DELEGATIONS_STORAGE_ENABLED = "true"
FF_RAMP_UP_PROBABILITY = "100"
FF_DAGPB_CONTENT_CACHE_TTL_SECONDS = 300
FF_DAGPB_CONTENT_CACHE_MAX_SIZE_MB = 2
FF_DAGPB_CONTENT_CACHE_ENABLED = "true"
TELEMETRY_RATIO = 1.0
GATEWAY_SERVICE_DID = "did:web:staging.w3s.link"
UPLOAD_SERVICE_DID = "did:web:staging.web3.storage"
CONTENT_CLAIMS_SERVICE_URL = "https://claims.web3.storage"
CARPARK_PUBLIC_BUCKET_URL = "https://carpark-prod-0.r2.w3s.link"
UPLOAD_API_URL = "https://staging.up.web3.storage"
INDEXING_SERVICE_URL = "https://indexer.storacha.network/"
[env.peeja]
# Custom name for your testing/dev worker
name = "peeja-freeway"
workers_dev = true
# Account Id from step 3
account_id = "5ad700ac7e44a8bdebb6c5626bc15ecb"
# See step 4.2 to create the R2 Bucket
r2_buckets = [
{ binding = "CARPARK", bucket_name = "carpark-peeja-0", preview_bucket_name = "carpark-peeja-preview-0" },
]
compatibility_flags = ["nodejs_compat"]
compatibility_date = "2024-11-26"
[env.peeja.vars]
DEBUG = "true"
FF_RATE_LIMITER_ENABLED = "false"
FF_EGRESS_TRACKER_ENABLED = "true"
FF_TELEMETRY_ENABLED = "false"
TELEMETRY_RATIO = 1.0
GATEWAY_SERVICE_DID = "did:web:staging.w3s.link"
UPLOAD_SERVICE_DID = "did:web:staging.web3.storage"
CONTENT_CLAIMS_SERVICE_URL = "https://staging.claims.web3.storage"
UPLOAD_API_URL = "https://staging.up.web3.storage"
INDEXING_SERVICE_URL = "https://staging.indexer.storacha.network/"
[[env.peeja.unsafe.bindings]]
name = "RATE_LIMITER"
type = "ratelimit"
namespace_id = "0"
simple = { limit = 100, period = 60 }
[[env.peeja.kv_namespaces]]
binding = "AUTH_TOKEN_METADATA"
# See step 4.1 to create the KV store
id = "0b44d436a3df48bfbdcfa3eb8b5207ca"
### Integration Tests Configuration
[env.integration]
name = "freeway-integration-test"
workers_dev = true
account_id = "fffa4b4363a7e5250af8357087263b3a"
r2_buckets = [
{ binding = "CARPARK", bucket_name = "carpark-integration-0", preview_bucket_name = "carpark-integration-preview-0" }
]
[env.integration.vars]
DEBUG = "true"
FF_RATE_LIMITER_ENABLED = "true"
FF_EGRESS_TRACKER_ENABLED = "true"
FF_TELEMETRY_ENABLED = "true"
TELEMETRY_RATIO = 1.0
GATEWAY_SERVICE_DID = "did:web:staging.w3s.link"
UPLOAD_SERVICE_DID = "did:web:staging.web3.storage"
CONTENT_CLAIMS_SERVICE_URL = "https://staging.claims.web3.storage"
UPLOAD_API_URL = "https://staging.up.web3.storage"
INDEXING_SERVICE_URL = "https://staging.indexer.storacha.network/"
[[env.integration.unsafe.bindings]]
name = "RATE_LIMITER"
type = "ratelimit"
namespace_id = "0"
simple = { limit = 100, period = 60 }
[[env.integration.kv_namespaces]]
binding = "AUTH_TOKEN_METADATA"
id = "a355501ee4f242b1affa32c1b335db2b"