forked from DIYgod/RSSHub
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwrangler.toml
More file actions
48 lines (38 loc) 路 1.38 KB
/
Copy pathwrangler.toml
File metadata and controls
48 lines (38 loc) 路 1.38 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
name = "rsshub"
main = "dist-worker/worker.mjs"
compatibility_date = "2026-09-01"
compatibility_flags = ["global_fetch_strictly_public"]
find_additional_modules = true
base_dir = "dist-worker/modules"
rules = [{ type = "Data", globs = ["data_files/**"], fallthrough = true }]
# Serve static assets from lib/assets
assets = { directory = "lib/assets" }
[build]
command = "pnpm run worker-build"
# Workers Paid plan is recommended for better performance
# Free plan has 10ms CPU time limit per request
# Paid plan has 30s CPU time limit per request
[observability]
enabled = true
# Browser Run API for Playwright support
# Requires Workers Paid plan
[browser]
binding = "BROWSER"
# KV namespace for caching (auto-provisioned on first deploy)
[[kv_namespaces]]
binding = "CACHE"
# PLAYWRIGHT_WS_ENDPOINT takes priority over BROWSER; use a matching Playwright version.
# Optional service binding when the WebSocket server is another Worker on this account.
# [[services]]
# binding = "PLAYWRIGHT_SERVICE"
# service = "your-playwright-service"
[vars]
# Only use the service binding for this endpoint origin.
# PLAYWRIGHT_SERVICE_ORIGIN = "https://your-playwright-service.example.com"
# Environment variables can be set here or via wrangler secret
# DEBUG_INFO = "false"
# For production, use wrangler secret put <KEY> to set sensitive values
# Example secrets:
# - ACCESS_KEY
# - GITHUB_ACCESS_TOKEN
# - etc.