forked from serverless-dns/serverless-dns
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wrangler.toml
64 lines (59 loc) · 1.66 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
name = "serverless-dns"
route = ""
type = "javascript"
account_id = ""
workers_dev = true
zone_id = ""
compatibility_date = "2021-11-10"
[build]
command = "npm install && npx webpack"
[build.upload]
format = "modules"
dir = "./dist"
main = "worker.js"
[[build.upload.rules]]
type = "ESModule"
globs = ["**/*.js"]
[vars]
RUNTIME = "worker"
LOG_LEVEL = "debug"
WORKER_ENV = "development"
CLOUD_PLATFORM = "cloudflare"
WORKER_TIMEOUT = 10000
CF_BLOCKLIST_DOWNLOAD_TIMEOUT = 5000
CF_BLOCKLIST_URL = "https://cf.rethinkdns.com/blocklists/"
CF_DNS_RESOLVER_URL = "https://cloudflare-dns.com/dns-query"
CF_DNS_RESOLVER_URL_2 = "https://dns.google/dns-query"
CF_LATEST_BLOCKLIST_TIMESTAMP = "1646028986510"
CACHE_TTL = 1800
TD_NODE_COUNT = 36932169
TD_PARTS = 2
##################
#------PROD------#
##################
# wrangler doesn't yet support Workers Services and the new "Environments"
# github.com/cloudflare/cloudflare-docs/pull/3175/files
# github.com/cloudflare/wrangler2/issues/27
# developers.cloudflare.com/workers/platform/environments
[env.prod]
name = "basic-unbound"
routes = [
"basic.rethinkdns.com/*",
"basic.bravedns.com/*",
]
# vars are not inherited
# workers/platform/environment-variables#environment-variables-via-wrangler
[env.prod.vars]
RUNTIME = "worker"
LOG_LEVEL = "info"
WORKER_ENV = "production"
CLOUD_PLATFORM = "cloudflare"
WORKER_TIMEOUT = 10000
CF_BLOCKLIST_DOWNLOAD_TIMEOUT = 5000
CF_BLOCKLIST_URL = "https://cf.rethinkdns.com/blocklists/"
CF_DNS_RESOLVER_URL = "https://cloudflare-dns.com/dns-query"
CF_DNS_RESOLVER_URL_2 = "https://dns.google/dns-query"
CF_LATEST_BLOCKLIST_TIMESTAMP = "1646028986510"
CACHE_TTL = 1800
TD_NODE_COUNT = 36932169
TD_PARTS = 2