-
Notifications
You must be signed in to change notification settings - Fork 5
/
wrangler.toml
138 lines (114 loc) · 3.7 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
name = "freeway"
main = "./dist/worker.mjs"
compatibility_date = "2023-06-17"
r2_buckets = [
{ binding = "CARPARK", bucket_name = "carpark-dev-0" }
]
[vars]
CONTENT_CLAIMS_SERVICE_URL = "https://dev.claims.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"
CONTENT_CLAIMS_SERVICE_URL = "https://claims.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"
CONTENT_CLAIMS_SERVICE_URL = "https://staging.claims.web3.storage"
# 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"
MAX_SHARDS = "120"
CONTENT_CLAIMS_SERVICE_URL = "https://test.claims.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"
CONTENT_CLAIMS_SERVICE_URL = "https://dev.claims.web3.storage"
[env.fforbeck]
name = "freeway-fforbeck"
workers_dev = 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" }
]
[env.fforbeck.vars]
DEBUG = "true"
FF_RATE_LIMITER_ENABLED = "false"
CONTENT_CLAIMS_SERVICE_URL = "https://dev.claims.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"
### 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"
CONTENT_CLAIMS_SERVICE_URL = "https://staging.claims.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"