-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathwrangler.toml
70 lines (58 loc) · 2.3 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
#:schema node_modules/wrangler/config-schema.json
name = "starbasedb"
main = "src/index.ts"
compatibility_date = "2024-09-25"
account_id = ""
compatibility_flags = ["nodejs_compat_v2"]
# Service Bindings
## DO NOT REMOVE: TEMPLATE SERVICES ##
# 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
# 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
[[durable_objects.bindings]]
name = "DATABASE_DURABLE_OBJECT"
class_name = "StarbaseDBDurableObject"
# Durable Object migrations.
# Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#migrations
[[migrations]]
tag = "v1"
new_sqlite_classes = ["StarbaseDBDurableObject"]
[vars]
# Use this in your Authorization header for full database access
ADMIN_AUTHORIZATION_TOKEN = "ABC123"
# Use this in your Authorization header for a user role with rules applied
CLIENT_AUTHORIZATION_TOKEN = "DEF456"
# Deploy the Durable Object in a specific region, default is "auto" or location near first request
REGION = "auto"
# Uncomment the section below to create a user for logging into your database UI.
# You can access the Studio UI at: https://your_endpoint/studio
STUDIO_USER = "admin"
STUDIO_PASS = "123456"
# Toggle to enable default features
ENABLE_ALLOWLIST = 0
ENABLE_RLS = 0
# External database source details
# This enables Starbase to connect to an external data source
# OUTERBASE_API_KEY = ""
EXTERNAL_DB_TYPE = "postgresql"
# EXTERNAL_DB_HOST = ""
# EXTERNAL_DB_PORT = 0
# EXTERNAL_DB_USER = ""
# EXTERNAL_DB_PASS = ""
# EXTERNAL_DB_DATABASE = ""
# EXTERNAL_DB_DEFAULT_SCHEMA = "public"
# EXTERNAL_DB_MONGODB_URI = ""
# EXTERNAL_DB_TURSO_URI = ""
# EXTERNAL_DB_TURSO_TOKEN = ""
# EXTERNAL_DB_STARBASEDB_URI = ""
# EXTERNAL_DB_STARBASEDB_TOKEN = ""
# EXTERNAL_DB_CLOUDFLARE_API_KEY = ""
# EXTERNAL_DB_CLOUDFLARE_ACCOUNT_ID = ""
# EXTERNAL_DB_CLOUDFLARE_DATABASE_ID = ""
AUTH_ALGORITHM = "RS256"
AUTH_JWKS_ENDPOINT = ""