-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwrangler.toml
More file actions
81 lines (64 loc) · 1.66 KB
/
Copy pathwrangler.toml
File metadata and controls
81 lines (64 loc) · 1.66 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
77
78
79
80
81
"$schema" = "./node_modules/wrangler/config-schema.json"
name = "r2filebox"
main = "worker/src/index.ts"
compatibility_date = "2026-07-20"
compatibility_flags = ["nodejs_compat"]
[placement]
mode = "smart"
workers_dev = true
[assets]
directory = "frontend/dist"
binding = "ASSETS"
not_found_handling = "single-page-application"
run_worker_first = [
"/api/*",
"/admin/*",
"/health"
]
[[r2_buckets]]
binding = "BUCKET"
bucket_name = "r2filebox-files"
[[d1_databases]]
binding = "DB"
database_name = "r2filebox-db"
database_id = "00000000-0000-0000-0000-000000000000"
migrations_dir = "worker/migrations"
[[ratelimits]]
name = "UPLOAD_RATE_LIMITER"
namespace_id = "2316401001"
simple = { limit = 600, period = 60 }
[[ratelimits]]
name = "UPLOAD_PART_RATE_LIMITER"
namespace_id = "2316401002"
simple = { limit = 2000, period = 60 }
[[ratelimits]]
name = "RESOLVE_RATE_LIMITER"
namespace_id = "2316401003"
simple = { limit = 2000, period = 60 }
[[ratelimits]]
name = "DOWNLOAD_RATE_LIMITER"
namespace_id = "2316401004"
simple = { limit = 2000, period = 60 }
[triggers]
# Hourly, not daily: one invocation drains a bounded number of batches, so the
# reclaim rate has to stay ahead of the share creation rate or expired objects
# accumulate in R2 and keep occupying the storage soft limit.
crons = [
"0 * * * *"
]
[[analytics_engine_datasets]]
binding = "ANALYTICS"
dataset = "r2filebox_metrics"
[observability]
enabled = true
head_sampling_rate = 0.1
[observability.logs]
enabled = true
head_sampling_rate = 0.1
invocation_logs = true
[version_metadata]
binding = "VERSION_METADATA"
[vars]
APP_VERSION = "2.6.0"
R2_BUCKET_NAME = "r2filebox-files"
D1_DATABASE_NAME = "r2filebox-db"