-
-
Notifications
You must be signed in to change notification settings - Fork 272
Expand file tree
/
Copy pathwrangler.toml
More file actions
76 lines (61 loc) · 2.09 KB
/
Copy pathwrangler.toml
File metadata and controls
76 lines (61 loc) · 2.09 KB
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
name = "zpan"
main = "./workers/bootstrap.ts"
compatibility_date = "2026-04-12"
compatibility_flags = ["nodejs_compat", "global_fetch_strictly_public"]
[assets]
binding = "ASSETS"
not_found_handling = "single-page-application"
run_worker_first = ["/api/*", "/dav", "/dav/*", "/r/*", "/s/*"]
[[d1_databases]]
binding = "DB"
database_name = "zpan-db"
database_id = "5bd64957-fa49-4da0-8b7b-6e0ad84037e7"
migrations_dir = "./migrations"
[[send_email]]
name = "EMAIL"
[[queues.producers]]
binding = "ARCHIVE_QUEUE"
queue = "zpan-archive-jobs"
[[queues.consumers]]
queue = "zpan-archive-jobs"
max_batch_size = 1
max_batch_timeout = 1
max_retries = 3
# Self-hosted avatar storage. When present, avatars upload straight to R2 (served from
# /api/avatar-blobs, or from PUBLIC_IMAGES_URL if an R2 custom domain is configured)
# instead of the ZPan Cloud avatar service.
[[r2_buckets]]
binding = "PUBLIC_IMAGES"
bucket_name = "zpan-public-images"
[observability]
enabled = true
[triggers]
crons = ["*/10 * * * *", "0 */6 * * *", "0 */12 * * *", "0 0 1 * *", "0 4 * * *"]
# ----------------------------------------------------------------------------
# Staging environment — used by non-production branch builds.
# CLOUDFLARE_ENV=staging is set automatically in the build script.
# Workers Builds creates preview versions on the same zpan Worker
# but with staging D1 binding.
# ----------------------------------------------------------------------------
[env.staging]
[env.staging.vars]
BETTER_AUTH_URL = "https://zpan-staging.saltbo.workers.dev"
ZPAN_CLOUD_URL = "https://zpan-cloud-staging.saltbo.workers.dev"
[[env.staging.d1_databases]]
binding = "DB"
database_name = "zpan-db-staging"
database_id = "a9197d7a-6524-42f0-b646-e714dcb30b3b"
migrations_dir = "./migrations"
[[env.staging.r2_buckets]]
binding = "PUBLIC_IMAGES"
bucket_name = "zpan-public-images-staging"
[[env.staging.send_email]]
name = "EMAIL"
[[env.staging.queues.producers]]
binding = "ARCHIVE_QUEUE"
queue = "zpan-archive-jobs-staging"
[[env.staging.queues.consumers]]
queue = "zpan-archive-jobs-staging"
max_batch_size = 1
max_batch_timeout = 1
max_retries = 3