forked from serverless-dns/serverless-dns
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wrangler.toml
73 lines (67 loc) · 1.88 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
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 = "1656319128681"
CACHE_TTL = 1800
TD_NODE_COUNT = 40760596
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 = "1656319128681"
CACHE_TTL = 1800
TD_NODE_COUNT = 40760596
TD_PARTS = 2
##################
#-----SECRETS----#
##################
# only for documentation purposes
# developers.cloudflare.com/workers/platform/environment-variables/#adding-secrets-via-wrangler
# [secrets]
# GW_IP4 = ""
# GW_IP6 = ""