-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample-wrangler.toml
38 lines (30 loc) · 1.05 KB
/
example-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
name = "kelpie-api"
main = "src/index.ts"
compatibility_date = "2024-02-08"
compatibility_flags = ["nodejs_compat"]
[placement]
mode = "smart"
[triggers]
crons = ["*/5 * * * *"] # * * * * * = run every 5 minutes
# Variable bindings. These are arbitrary, plaintext strings (similar to environment variables)
# Note: Use secrets to store sensitive data.
# Docs: https://developers.cloudflare.com/workers/platform/environment-variables
[vars]
API_HEADER = "x-kelpie-key"
MAX_FAILURES_PER_WORKER = "5"
ADMIN_ID = "00000000-0000-0000-0000-000000000000"
# Bind a KV Namespace. Use KV as persistent storage for small key-value pairs.
# Docs: https://developers.cloudflare.com/workers/runtime-apis/kv
[[kv_namespaces]]
binding = "user_tokens"
id = "67649c36-79dd-4b23-a9bb-23d057c18731"
[[kv_namespaces]]
binding = "banned_workers"
id = "330b9fef-d0b3-4061-962c-9f1a038f488c"
[[kv_namespaces]]
binding = "salad_cache"
id = "fea342ad-1262-4264-8fe9-57a9984204d7"
[[d1_databases]]
binding = "DB"
database_name = "kelpie"
database_id = "411d21c7-614d-4fba-bf46-ee405dcf4c06"