-
Notifications
You must be signed in to change notification settings - Fork 5
/
wrangler.toml
197 lines (171 loc) · 6.01 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
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" }
]
[env.production.build]
command = "npm run build"
[env.production.vars]
MAX_SHARDS = "825"
FF_RATE_LIMITER_ENABLED = "false"
FF_EGRESS_TRACKER_ENABLED = "false"
FF_TELEMETRY_ENABLED = "true"
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"
# 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" }
]
[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 = "false"
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"
# 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_TELEMETRY_ENABLED = "true"
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"
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
# Personal Account
# account_id = "9e46c5ddfefedb9bae5d81a0dd911e5a"
# Company Account
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" }
]
[env.fforbeck.vars]
DEBUG = "true"
FF_RATE_LIMITER_ENABLED = "false"
FF_EGRESS_TRACKER_ENABLED = "true"
FF_TELEMETRY_ENABLED = "false"
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"
[[env.fforbeck.unsafe.bindings]]
name = "RATE_LIMITER"
type = "ratelimit"
namespace_id = "0"
simple = { limit = 5, period = 60 }
[[env.fforbeck.kv_namespaces]]
binding = "AUTH_TOKEN_METADATA"
id = "f848730e45d94f17bcaf3b6d0915da40"
[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"
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"
### 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"
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"
[[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"