-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathwrangler.toml
42 lines (39 loc) · 2.21 KB
/
wrangler.toml
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
name = "rsshub-never-die"
# 默认为 Production 环境
main = "dist/app.mjs"
minify = true
compatibility_date = "2024-10-20"
compatibility_flags = ["nodejs_compat"]
[observability]
enabled = true
head_sampling_rate = 1 # optional. default = 1.
[vars]
# 超时时间(ms)
TIMEOUT = 60000
# 最大请求体大小(字节),默认 100MB
MAX_BODY_SIZE = 104857600
# 缓存时间(秒)
CACHE_MAX_AGE = 300
# RSSHub 实例 的 URL 地址,,使用英文逗号分隔。
# 官方实例 https://rsshub.app 不用列出,默认添加。
RSSHUB_NODE_URLS = 'https://rsshub.rssforever.com, https://hub.slarker.me, https://rsshub.pseudoyu.com, https://rsshub.ktachibana.party, https://rsshub.woodland.cafe, https://rss.owo.nz, https://yangzhi.app, https://rsshub.henry.wang, https://rss.peachyjoy.top, https://rsshub.speednet.icu'
# 访问码,注意和 RSSHub 的 ACCESS_KEY 不是同一个。
# 留空则不做限制
AUTH_KEY = ''
# 运行模式,有三种模式,负载均衡、自动容灾、快速响应模式
# 负载均衡:负载均衡模式下,会随机选择一个 RSSHub 实例进行请求。但不管请求成功还是失败,都会返回给客户端。
# 自动容灾:自动容灾模式下,会随机选择一个 RSSHub 实例进行请求。如果请求成功,则返回给客户端。如果请求失败,则会选择下一个实例进行请求。如果所有实例都失败,则返回给客户端错误。
# 在自动容灾模式下,由于重新请求需要时间,会增加整体的请求时间。
# 快速响应:会随机选择多个 RSSHub 实例进行请求。并返回最快的成功响应。如果全部失败,则则返回给客户端错误。
# 快速响应模式下,会增加背后实例的负载。
# 默认为负载均衡模式
# 可选值:loadbalance, failover, quickresponse
# MODE = 'loadbalance'
MAX_NODE_NUM = 6
[env.dev]
# Development 环境配置
main = "src/app.ts"
minify = false
[env.dev.vars]
RSSHUB_NODE_URLS = 'https://rsshub.rssforever.com, https://hub.slarker.me, https://rsshub.pseudoyu.com, https://rsshub.ktachibana.party, https://rsshub.woodland.cafe, https://rss.owo.nz, https://yangzhi.app, https://rsshub.henry.wang, https://rss.peachyjoy.top, https://rsshub.speednet.icu'
MODE = 'quickresponse'