41 lines
1.1 KiB
TOML
41 lines
1.1 KiB
TOML
name = "rsshub-container"
|
|
main = "dist/index.mjs"
|
|
compatibility_date = "2026-01-16"
|
|
compatibility_flags = ["nodejs_compat"]
|
|
|
|
[build]
|
|
command = "pnpm run build"
|
|
|
|
[observability]
|
|
enabled = true
|
|
|
|
# Container configuration
|
|
# Image tag will be updated by GitHub Actions
|
|
[[containers]]
|
|
class_name = "RSSHubContainer"
|
|
image = "registry.cloudflare.com/CLOUDFLARE_ACCOUNT_ID/rsshub:chromium-bundled-baa8d99308c2d092ad649971a267345e041396f0"
|
|
max_instances = 44
|
|
instance_type = "standard-1"
|
|
|
|
# Durable Object binding for the container
|
|
[[durable_objects.bindings]]
|
|
name = "RSSHUB_CONTAINER"
|
|
class_name = "RSSHubContainer"
|
|
|
|
# Required migration for Durable Objects with SQLite
|
|
[[migrations]]
|
|
tag = "v1"
|
|
new_sqlite_classes = ["RSSHubContainer"]
|
|
|
|
# KV namespace for container environment variables
|
|
[[kv_namespaces]]
|
|
binding = "CONFIG"
|
|
|
|
[[analytics_engine_datasets]]
|
|
binding = "REQUEST_ANALYTICS"
|
|
dataset = "rsshub_requests"
|
|
|
|
# Set env vars in KV using wrangler CLI:
|
|
# wrangler kv:key put --namespace-id=<namespace-id> "GITHUB_ACCESS_TOKEN" "your-token"
|
|
# wrangler kv:key put --namespace-id=<namespace-id> "ACCESS_KEY" "your-key"
|