-
Notifications
You must be signed in to change notification settings - Fork 0
/
wrangler.toml
91 lines (75 loc) · 3.37 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
#:schema node_modules/wrangler/config-schema.json
name = "rediflare-env_unspecified"
main = "src/index.ts"
compatibility_date = "2024-09-25"
assets = { directory = "./public/", binding = "ASSETS" }
# Retain dashboard changes during deployments for variable changes!
keep_vars = true
# Workers Logs
# Docs: https://developers.cloudflare.com/workers/observability/logs/workers-logs/
# Configuration: https://developers.cloudflare.com/workers/observability/logs/workers-logs/#enable-workers-logs
[observability]
enabled = true
#######################################################
## DEV
#######################################################
[env.dev]
name = "rediflare-dev"
[env.dev.vars]
VAR_API_AUTH_ENABLED = true
# Bind a Durable Object. Durable objects are a scale-to-zero compute primitive based on the actor model.
# Durable Objects can live for as long as needed. Use these when you need a long-running "server", such as in realtime apps.
# Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#durable-objects
[env.dev.durable_objects]
bindings = [
{name = "REDIFLARE_TENANT", class_name = "RediflareTenant"},
{name = "REDIFLARE_REDIRECT_RULE", class_name = "RediflareRedirectRule"},
]
#######################################################
## STAGING
#######################################################
[env.staging]
name = "rediflare-staging"
routes = [
{ pattern = "go-staging.lambros.dev", custom_domain = true },
]
[env.staging.vars]
VAR_API_AUTH_ENABLED = true
# Put it in `.dev.vars` when running locally.
# https://developers.cloudflare.com/workers/wrangler/configuration/#secrets
#VAR_API_AUTH_ADMIN_KEYS_CSV = ",rf_key_TENANT1111_sometoken,"
# Bind a Durable Object. Durable objects are a scale-to-zero compute primitive based on the actor model.
# Durable Objects can live for as long as needed. Use these when you need a long-running "server", such as in realtime apps.
# Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#durable-objects
[env.staging.durable_objects]
bindings = [
{name = "REDIFLARE_TENANT", class_name = "RediflareTenant"},
{name = "REDIFLARE_REDIRECT_RULE", class_name = "RediflareRedirectRule"},
]
#######################################################
## PROD
#######################################################
[env.prod]
name = "rediflare-prod"
routes = [
{ pattern = "go.lambros.dev", custom_domain = true },
{ pattern = "go.rediflare.com", custom_domain = true },
]
[env.prod.vars]
VAR_API_AUTH_ENABLED = true
# Put it in `.dev.vars` when running locally.
# https://developers.cloudflare.com/workers/wrangler/configuration/#secrets
#VAR_API_AUTH_ADMIN_KEYS_CSV = ",rf_key_TENANT1111_sometoken,"
# Bind a Durable Object. Durable objects are a scale-to-zero compute primitive based on the actor model.
# Durable Objects can live for as long as needed. Use these when you need a long-running "server", such as in realtime apps.
# Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#durable-objects
[env.prod.durable_objects]
bindings = [
{name = "REDIFLARE_TENANT", class_name = "RediflareTenant"},
{name = "REDIFLARE_REDIRECT_RULE", class_name = "RediflareRedirectRule"},
]
# Durable Object migrations.
# Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#migrations
[[migrations]]
tag = "v1"
new_sqlite_classes = ["RediflareTenant", "RediflareRedirectRule"]