forked from serverless-dns/serverless-dns
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wrangler.toml
56 lines (50 loc) · 1.35 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
name = "serverless-dns"
route = ""
main = "./dist/worker.js"
account_id = ""
workers_dev = true
# use node_compat or custom build
# node_compat = true
compatibility_date = "2022-08-04"
[build]
command = "npm run build"
[[rules]]
type = "ESModule"
globs = ["**/*.js"]
[vars]
RUNTIME = "worker"
LOG_LEVEL = "debug"
WORKER_ENV = "development"
CLOUD_PLATFORM = "cloudflare"
CF_BLOCKLIST_URL = "https://cfstore.rethinkdns.com/blocklists/"
##################
#------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 = [
"sky.rethinkdns.com/*",
"sky.bravedns.com/*",
"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"
CF_BLOCKLIST_URL = "https://cfstore.rethinkdns.com/blocklists/"
##################
#-----SECRETS----#
##################
# only for documentation purposes
# developers.cloudflare.com/workers/platform/environment-variables/#adding-secrets-via-wrangler
# [secrets]
# GW_IP4 = ""
# GW_IP6 = ""