-
Notifications
You must be signed in to change notification settings - Fork 1
/
wrangler.toml
115 lines (99 loc) · 3.08 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
# dotstorage edge gateway wrangler config.
name = "dotstorage-edge-gateway"
main = "./dist/worker.mjs"
compatibility_date = "2022-07-01"
compatibility_flags = [ "url_standard" ]
no_bundle = true
[build]
command = "npm run build"
# miniflare
[vars]
IPFS_GATEWAYS = "[\"http://127.0.0.1:9081\"]"
GATEWAY_HOSTNAME = 'ipfs.localhost:8787'
EDGE_GATEWAY_API_URL = 'http://localhost:8787'
DEBUG = "true"
ENV = "dev"
# PROD!
[env.production]
# name = "dotstorage-edge-gateway-production"
account_id = "fffa4b4363a7e5250af8357087263b3a" # Protocol Labs CF account
routes = [
"dag.haus/ipfs/*",
"*.ipfs.dag.haus/*",
"ipfs.dag.haus/*",
"*.ipfs.dag.haus",
"dag.haus/ipns/*",
"*.ipns.dag.haus/*",
"*.ipns.dag.haus"
]
kv_namespaces = [{ binding = "DENYLIST", id = "785cf627e913468ca5319523ae929def" }]
[env.production.vars]
IPFS_GATEWAYS = "[\"https://ipfs.io\", \"https://cf.nftstorage.link\", \"https://pinata.nftstorage.link\"]"
GATEWAY_HOSTNAME = 'ipfs.dag.haus'
EDGE_GATEWAY_API_URL = 'https://api.nftstorage.link'
DEBUG = "false"
ENV = "production"
# TODO: Should point to general API in the future
[[env.production.services]]
binding = "API"
type = "service"
service = "nftstorage-link-api-production"
environment = "production"
[[env.production.unsafe.bindings]]
type = "analytics_engine"
dataset = "PUBLIC_RACE_WINNER_PRODUCTION"
name = "PUBLIC_RACE_WINNER"
[[env.production.unsafe.bindings]]
type = "analytics_engine"
dataset = "PUBLIC_RACE_TTFB_PRODUCTION"
name = "PUBLIC_RACE_TTFB"
[[env.production.unsafe.bindings]]
type = "analytics_engine"
dataset = "PUBLIC_RACE_STATUS_CODE_PRODUCTION"
name = "PUBLIC_RACE_STATUS_CODE"
# Staging!
[env.staging]
# name = "gateway-nft-storage-staging"
account_id = "fffa4b4363a7e5250af8357087263b3a" # Protocol Labs CF account
routes = [
"*.ipfs-staging.dag.haus/*",
"ipfs-staging.dag.haus/*",
"*.ipfs-staging.dag.haus",
"*.ipns-staging.dag.haus/*",
"*.ipns-staging.dag.haus"
]
kv_namespaces = [{ binding = "DENYLIST", id = "f4eb0eca32e14e28b643604a82e00cb3" }]
[env.staging.vars]
IPFS_GATEWAYS = "[\"https://ipfs.io\", \"https://cf.nftstorage.link\", \"https://pinata.nftstorage.link\"]"
GATEWAY_HOSTNAME = 'ipfs-staging.dag.haus'
EDGE_GATEWAY_API_URL = 'https://api.nftstorage.link'
DEBUG = "true"
ENV = "staging"
# TODO: Should point to general API in the future
[[env.staging.services]]
binding = "API"
type = "service"
service = "nftstorage-link-api-staging"
environment = "production"
[[env.staging.unsafe.bindings]]
type = "analytics_engine"
dataset = "PUBLIC_RACE_WINNER_STAGING"
name = "PUBLIC_RACE_WINNER"
[[env.staging.unsafe.bindings]]
type = "analytics_engine"
dataset = "PUBLIC_RACE_TTFB_STAGING"
name = "PUBLIC_RACE_TTFB"
[[env.staging.unsafe.bindings]]
type = "analytics_engine"
dataset = "PUBLIC_RACE_STATUS_CODE_STAGING"
name = "PUBLIC_RACE_STATUS_CODE"
# Test!
[env.test]
workers_dev = true
kv_namespaces = [{ binding = "DENYLIST" }]
[env.test.vars]
IPFS_GATEWAYS = "[\"http://127.0.0.1:9081\", \"http://localhost:9082\", \"http://localhost:9083\"]"
GATEWAY_HOSTNAME = 'ipfs.localhost:8787'
EDGE_GATEWAY_API_URL = 'http://localhost:8787'
DEBUG = "true"
ENV = "test"