-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwrangler.jsonc
More file actions
56 lines (56 loc) · 1.43 KB
/
wrangler.jsonc
File metadata and controls
56 lines (56 loc) · 1.43 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
{
"$schema": "node_modules/wrangler/config-schema.json",
"name": "tcoder",
"main": "src/index.ts",
"compatibility_date": "2025-09-06",
"compatibility_flags": ["nodejs_compat"],
"observability": {
"enabled": true
},
// Cron trigger for stale job recovery (every 1 minute)
"triggers": {
"crons": ["* * * * *"]
},
// Environment variables
"vars": {
"NODE_ENV": "production",
"R2_PUBLIC_URL": "https://pub-9a0a3b7afaee46cab843fa2067460496.r2.dev",
"BUNNY_CDN_URL": "https://tcoder-pull.b-cdn.net/",
"WEBHOOK_BASE_URL": "https://tcoder.cloudflare-c49.workers.dev/"
},
// R2 bucket bindings
"r2_buckets": [
{
"binding": "INPUT_BUCKET",
"bucket_name": "tcoder-input"
},
{
"binding": "OUTPUT_BUCKET",
"bucket_name": "tcoder-output"
}
],
// Queue bindings for R2 event notifications
"queues": {
"producers": [
{
"binding": "TRANSCODE_QUEUE",
"queue": "tcoder-events"
}
],
"consumers": [
{
"queue": "tcoder-events",
"max_batch_size": 10,
"max_batch_timeout": 5
}
]
}
// Environment variables (set via wrangler secret)
// UPSTASH_REDIS_REST_URL - Upstash Redis REST URL
// UPSTASH_REDIS_REST_TOKEN - Upstash Redis REST token
// FLY_API_TOKEN - Fly.io API token
// FLY_APP_NAME - Fly app name (fly-tcoder-ffmpeg-worker-31657fa)
// FLY_REGION - Fly region (fra)
// WEBHOOK_BASE_URL - Base URL for webhooks
// R2_PUBLIC_URL - Public URL for R2 bucket (optional, for presigned URLs)
}