/
wrangler.toml
131 lines (116 loc) 路 3.97 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
# nftstorage.link wrangler config.
name = "gateway-nft-storage"
main = "./dist/worker.js"
compatibility_date = "2022-07-01"
compatibility_flags = [ "url_standard" ]
no_bundle = true
[build]
command = "npm run build"
# miniflare
[vars]
DEBUG = "true"
ENV = "dev"
# PROD!
[env.production]
# name = "gateway-nft-storage-production"
account_id = "fffa4b4363a7e5250af8357087263b3a" # Protocol Labs CF account
routes = [
{ pattern = "nftstorage.link/ipfs/*", zone_id = "c7795a0adce7609a95d62fec04705aff" },
{ pattern = "*.ipfs.nftstorage.link/*", zone_id = "c7795a0adce7609a95d62fec04705aff" },
{ pattern = "ipfs.nftstorage.link/*", zone_id = "c7795a0adce7609a95d62fec04705aff" },
{ pattern = "*.ipfs.nftstorage.link", zone_id = "c7795a0adce7609a95d62fec04705aff" },
{ pattern = "nftstorage.link/ipns/", zone_id = "c7795a0adce7609a95d62fec04705aff" },
{ pattern = "*.ipns.nftstorage.link/*", zone_id = "c7795a0adce7609a95d62fec04705aff" },
{ pattern = "*.ipns.nftstorage.link", zone_id = "c7795a0adce7609a95d62fec04705aff" }
]
kv_namespaces = [
{ binding = "GOODBITSLIST", id = "292616354e2a4f83b7ac13ef30d66a30" }
]
[env.production.vars]
GATEWAY_HOSTNAME = 'ipfs.nftstorage.link'
DEBUG = "false"
ENV = "production"
[[env.production.services]]
binding = "EDGE_GATEWAY"
type = "service"
service = "dotstorage-edge-gateway-production"
environment = "production"
# Staging!
[env.staging]
# name = "gateway-nft-storage-staging"
account_id = "fffa4b4363a7e5250af8357087263b3a" # Protocol Labs CF account
routes = [
{ pattern = "*.ipfs-staging.nftstorage.link/*", zone_id = "c7795a0adce7609a95d62fec04705aff" },
{ pattern = "ipfs-staging.nftstorage.link/*", zone_id = "c7795a0adce7609a95d62fec04705aff" },
{ pattern = "*.ipfs-staging.nftstorage.link", zone_id = "c7795a0adce7609a95d62fec04705aff" },
{ pattern = "*.ipns-staging.nftstorage.link/*", zone_id = "c7795a0adce7609a95d62fec04705aff" },
{ pattern = "*.ipns-staging.nftstorage.link", zone_id = "c7795a0adce7609a95d62fec04705aff" }
]
kv_namespaces = [
{ binding = "GOODBITSLIST", id = "3905c48a814d4a938e500f8b890a8602" }
]
[env.staging.vars]
GATEWAY_HOSTNAME = 'ipfs-staging.nftstorage.link'
DEBUG = "true"
ENV = "staging"
[[env.staging.services]]
binding = "EDGE_GATEWAY"
type = "service"
service = "dotstorage-edge-gateway-staging"
environment = "production"
# Test!
[env.test]
workers_dev = true
kv_namespaces = [
{ binding = "GOODBITSLIST" }
]
[env.test.vars]
GATEWAY_HOSTNAME = 'ipfs.localhost:8787'
DEBUG = "true"
ENV = "test"
# Dev!
[env.vsantos]
workers_dev = true
account_id = "7ec0b7cf2ec201b2580374e53ba5f37b"
[env.vsantos.vars]
GATEWAY_HOSTNAME = 'ipfs.localhost:8787'
[env.alanshaw]
workers_dev = true
account_id = "4fe12d085474d33bdcfd8e9bed4d8f95"
[env.alanshaw.vars]
GATEWAY_HOSTNAME = 'ipfs.localhost:8787'
[[migrations]]
tag = "v1" # Should be unique for each entry
new_classes = ["GatewayMetrics0", "SummaryMetrics0", "CidsTracker0", "GatewayRateLimits0", "GatewayRedirectCounter0"]
[[migrations]]
tag = "v2" # Should be unique for each entry
renamed_classes = [
{from="GatewayRateLimits0", to="GatewayRateLimits1"}
]
[[migrations]]
tag = "v3" # Should be unique for each entry
renamed_classes = [
{from="GatewayRateLimits1", to="GatewayRateLimits2"}
]
[[migrations]]
tag = "v4" # Should be unique for each entry
new_classes = ["GatewayRateLimits3"]
deleted_classes = ["GatewayRateLimits2"]
[[migrations]]
tag = "v5" # Should be unique for each entry
new_classes = ["GatewayRateLimits4"]
deleted_classes = ["GatewayRateLimits3"]
[[migrations]]
tag = "v6" # Should be unique for each entry
deleted_classes = ["GatewayRateLimits4"]
[[migrations]]
tag = "v7" # Should be unique for each entry
new_classes = ["SummaryMetrics1"]
deleted_classes = ["SummaryMetrics0"]
[[migrations]]
tag = "v8" # Should be unique for each entry
new_classes = ["GatewayMetrics1"]
deleted_classes = ["GatewayMetrics0"]
[[migrations]]
tag = "v9" # Should be unique for each entry
deleted_classes = ["GatewayMetrics1", "SummaryMetrics1", "CidsTracker0", "GatewayRedirectCounter0"]