forked from DIYgod/RSSHub
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwrangler-container.toml
More file actions
36 lines (29 loc) · 979 Bytes
/
wrangler-container.toml
File metadata and controls
36 lines (29 loc) · 979 Bytes
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
name = "rsshub-container"
main = "dist-container/container.mjs"
compatibility_date = "2026-01-16"
compatibility_flags = ["nodejs_compat"]
[build]
command = "pnpm run container-build"
[observability]
enabled = true
# Container configuration
[[containers]]
class_name = "RSSHubContainer"
image = "./Dockerfile"
max_instances = 20
instance_type = "standard-1"
image_vars = { PUPPETEER_SKIP_DOWNLOAD = "0" }
# 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"
# Example: Set env vars in KV using wrangler CLI:
# wrangler kv:key put --namespace-id=rsshub-container-config "GITHUB_ACCESS_TOKEN" "your-token"
# wrangler kv:key put --namespace-id=rsshub-container-config "ACCESS_KEY" "your-key"