Skip to content

Commit 1dba6bb

Browse files
committed
feat: 更新 Egern 模块(max_size 和 timeout 有问题, 使用 workaround)
1 parent 153546b commit 1dba6bb

1 file changed

Lines changed: 68 additions & 5 deletions

File tree

config/Egern.yaml

Lines changed: 68 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,107 @@
11
name: Sub-Store
2-
description: "支持 Surge 正式版的参数设置功能. 测落地功能 ability: http-client-policy, 同步配置的定时 cronexp: 55 23 * * *"
2+
description: "同步配置的定时 cronexp: 55 23 * * *"
33
icon: https://raw.githubusercontent.com/cc63/ICON/main/Sub-Store.png
44
compat_arguments:
5-
ability: http-client-policy
5+
# ability: http-client-policy
66
cronexp: 55 23 * * *
77
sync: "Sub-Store Sync"
8-
timeout: 120
9-
engine: auto
8+
# timeout: 300
9+
# engine: auto
1010
produce: "# Sub-Store Produce"
1111
produce_cronexp: 50 */6 * * *
1212
sync_success_notify: true
1313
produce_sub: "sub1,sub2"
1414
produce_col: "col1,col2"
1515
cors: "https://sub-store.vercel.app,http://substore.stash,https://substore.stash"
16-
compat_arguments_desc: '\n1️⃣ ability\n\n默认已开启测落地能力\n需要配合脚本操作\n如 https://raw.githubusercontent.com/Keywos/rule/main/cname.js\n填写任意其他值关闭\n\n2️⃣ cronexp\n\n同步配置定时任务\n默认为每天 23 点 55 分\n\n定时任务指定时将订阅/文件上传到私有 Gist. 在前端, 叫做 ''同步'' 或 ''同步配置''\n\n3️⃣ sync\n\n自定义定时任务名\n便于在脚本编辑器中选择\n若设为 # 可取消定时任务\n\n4️⃣ timeout\n\n脚本超时, 单位为秒\n\n5️⃣ engine\n\n默认为自动使用 webview 引擎, 可设为指定 jsc, 但 jsc 容易爆内存\n\n6️⃣ produce\n\n自定义处理订阅的定时任务名\n一般用于定时处理耗时较长的订阅, 以更新缓存\n这样 Surge 中拉取的时候就能用到缓存, 不至于总是超时\n若设为 # 可取消此定时任务\n默认不开启\n\n7️⃣ produce_cronexp\n\n配置处理订阅的定时任务\n\n默认为每 6 小时\n\n8️⃣ sync_success_notify\n\n同步配置全部成功时是否发送完成通知\n默认为 true, 填 false/0/no/off 可关闭\n\n9️⃣ produce_sub\n\n自定义需定时处理的单条订阅名\n多个用 , 连接\n\n🔟 produce_col\n\n自定义需定时处理的组合订阅名\n多个用 , 连接\n\n1️⃣1️⃣ cors\n\n允许浏览器跨域访问 Sub-Store 后端的 origin. 默认为 https://sub-store.vercel.app,http://substore.stash,https://substore.stash. 多个用 , 连接. 设为 * 可恢复旧的任意来源访问行为, 存在钓鱼网站读取配置的风险\n\n⚠️ 注意: 是 名称(name) 不是 显示名称(displayName)\n如果名称需要编码, 请编码后再用 , 连接\n顺序: 并发执行单条订阅, 然后并发执行组合订阅'
16+
compat_arguments_desc: |
17+
脚本超时(Egern 有问题, 不支持自定义, 本文件中固定为 300 秒)
18+
19+
1️⃣ cors
20+
21+
允许浏览器跨域访问 Sub-Store 后端的 origin.
22+
默认为 https://sub-store.vercel.app,http://substore.stash,https://substore.stash.
23+
多个用 , 连接.
24+
25+
设为 * 可恢复旧的任意来源访问行为, 存在钓鱼网站读取配置的风险
26+
27+
2️⃣ cronexp
28+
29+
同步配置定时任务
30+
默认为每天 23 点 55 分
31+
32+
定时任务指定时将订阅/文件上传到私有 Gist. 在前端, 叫做 "同步" 或 "同步配置"
33+
34+
3️⃣ sync
35+
36+
自定义定时任务名
37+
便于在脚本编辑器中选择
38+
若设为 # 可取消定时任务
39+
40+
4️⃣ produce
41+
42+
自定义处理订阅的定时任务名
43+
一般用于定时处理耗时较长的订阅, 以更新缓存
44+
这样 Surge 中拉取的时候就能用到缓存, 不至于总是超时
45+
若设为 # 可取消此定时任务
46+
默认不开启
47+
48+
5️⃣ produce_cronexp
49+
50+
配置处理订阅的定时任务
51+
52+
默认为每 6 小时
53+
54+
6️⃣ sync_success_notify
55+
56+
同步配置全部成功时是否发送完成通知
57+
默认为 true, 填 false/0/no/off 可关闭
58+
59+
7️⃣ produce_sub
60+
61+
自定义需定时处理的单条订阅名
62+
多个用 , 连接
63+
64+
8️⃣ produce_col
65+
66+
自定义需定时处理的组合订阅名
67+
多个用 , 连接
68+
69+
⚠️ 注意: 是 名称(name) 不是 显示名称(displayName)
70+
71+
如果名称需要编码, 请编码后再用 , 连接
72+
73+
顺序: 并发执行单条订阅, 然后并发执行组合订阅
1774
scriptings:
1875
- http_request:
1976
name: Sub-Store Core
2077
match: ^https?:\/\/sub\.store\/((download)|api\/(preview|sync|(utils\/node-info)))
2178
script_url: https://github.com/sub-store-org/Sub-Store/releases/latest/download/sub-store-1.min.js
2279
body_required: true
80+
max_size: 999999999
81+
timeout: 300
2382
arguments:
2483
_compat.$argument: "cors={{{cors}}}"
2584
- http_request:
2685
name: Sub-Store Simple
2786
match: ^https?:\/\/sub\.store
2887
script_url: https://github.com/sub-store-org/Sub-Store/releases/latest/download/sub-store-0.min.js
2988
body_required: true
89+
max_size: 999999999
90+
timeout: 300
3091
arguments:
3192
_compat.$argument: "cors={{{cors}}}"
3293
- schedule:
3394
name: "{{{sync}}}"
3495
cron: "{{{cronexp}}}"
3596
script_url: https://github.com/sub-store-org/Sub-Store/releases/latest/download/cron-sync-artifacts.min.js
97+
timeout: 300
3698
arguments:
3799
_compat.$argument: "sync_success_notify={{{sync_success_notify}}}"
38100
- schedule:
39101
name: "{{{produce}}}"
40102
cron: "{{{produce_cronexp}}}"
41103
script_url: https://github.com/sub-store-org/Sub-Store/releases/latest/download/cron-sync-artifacts.min.js
104+
timeout: 300
42105
arguments:
43106
_compat.$argument: "sub={{{produce_sub}}}&col={{{produce_col}}}"
44107
mitm:

0 commit comments

Comments
 (0)