-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwrangler.toml
46 lines (43 loc) · 1.03 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
name = "redir"
usage_model = "unbound"
main = "src/index.js"
compatibility_date = "2023-06-19"
workers_dev = true
send_metrics = false
[vars]
REDIR_CATCHALL = "https://rethinkdns.com/404#r"
WENV = "dev"
MIN_VCODE = "30"
STATUS = "Ok"
##################
#------PROD------#
##################
[env.prod]
name = "svc"
minify = true
routes = [
# redirects
"svc.rethinkdns.com/r/*",
"svc.bravedns.com/r/*",
# stripe webhooks
"svc.rethinkdns.com/s/*",
"svc.bravedns.com/s/*",
# proxy
"svc.rethinkdns.com/p/*",
"svc.bravedns.com/p/*",
]
# vars are not inherited
# workers/platform/environment-variables#environment-variables-via-wrangler
[env.prod.vars]
REDIR_CATCHALL = "https://rethinkdns.com/404#r"
WENV = "prod"
MIN_VCODE = "30"
STATUS = "ok"
##################
#-----SECRETS----#
##################
# only for documentation purposes
# developers.cloudflare.com/workers/platform/environment-variables/#adding-secrets-via-wrangler
# [secrets]
# PRE_SHARED_KEY_SVC = "128-chars-hex"
# PUBLIC_KEY_BLINDRSA_(timestamp) = "pub-rsa-pss-hex"