Files
youtubezimu/sample/server/wrangler.jsonc
T
gavindiaz 6ab8533faa
CI / build (20) (push) Canceled after 0s
CI / build (22) (push) Canceled after 0s
修改为docker部署
2026-09-08 21:17:01 +08:00

40 lines
850 B
JSON

{
"$schema": "./node_modules/wrangler/config-schema.json",
"name": "youtube-caption-extractor-api",
"main": "worker.js",
"compatibility_date": "2026-05-16",
"vars": {
"API_INSTANCE_COUNT": "2",
"CONTAINER_VERSION": "server-v2",
"CACHE_TTL_SECONDS": "21600",
"EXTRACTION_ATTEMPTS": "4",
"EXTRACTION_RETRY_BASE_DELAY_MS": "300",
"ALLOWED_ORIGINS": "*"
},
"containers": [
{
"class_name": "CaptionApiContainer",
"image": "./Dockerfile",
"instance_type": "lite",
"max_instances": 4
}
],
"durable_objects": {
"bindings": [
{
"name": "CAPTION_API",
"class_name": "CaptionApiContainer"
}
]
},
"migrations": [
{
"tag": "v1",
"new_sqlite_classes": ["CaptionApiContainer"]
}
],
"observability": {
"enabled": true
}
}