Skip to content

Commit c5645e5

Browse files
authored
Update Egern.yaml
1 parent ad41e99 commit c5645e5

File tree

1 file changed

+23
-22
lines changed

1 file changed

+23
-22
lines changed

Diff for: config/Egern.yaml

+23-22
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,38 @@
11
name: Sub-Store
2-
description: "支持 Surge 正式版的参数设置功能. 测落地功能 ability: http-client-policy, 同步配置的定时 cronexp: 55 23 * * *"
2+
description: '支持 Surge 正式版的参数设置功能. 测落地功能 ability: http-client-policy, 同步配置的定时 cronexp: 55 23 * * *'
33
compat_arguments:
44
ability: http-client-policy
55
cronexp: 55 23 * * *
66
sync: '"Sub-Store Sync"'
7-
timeout: "120"
7+
timeout: '120'
88
engine: auto
99
produce: '"# Sub-Store Produce"'
1010
produce_cronexp: 50 */6 * * *
1111
produce_sub: '"sub1,sub2"'
1212
produce_col: '"col1,col2"'
1313
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\n9️⃣ produce_sub\n\n自定义需定时处理的单条订阅名\n多个用 , 连接\n\n🔟 produce_col\n\n自定义需定时处理的组合订阅名\n多个用 , 连接\n\n⚠️ 注意: 是 名称(name) 不是 显示名称(displayName)\n如果名称需要编码, 请编码后再用 , 连接\n顺序: 并发执行单条订阅, 然后并发执行组合订阅'
1414
scriptings:
15-
- http_request:
16-
name: Sub-Store Core
17-
match: ^https?:\/\/sub\.store\/((download)|api\/(preview|sync|(utils\/node-info)))
18-
script_url: https://raw.githubusercontent.com/sub-store-org/Sub-Store/release/sub-store-1.min.js
19-
body_required: true
20-
- http_request:
21-
name: Sub-Store Simple
22-
match: ^https?:\/\/sub\.store
23-
script_url: https://raw.githubusercontent.com/sub-store-org/Sub-Store/release/sub-store-0.min.js
24-
body_required: true
25-
- schedule:
26-
name: "{{{sync}}}"
27-
cron: "{{{cronexp}}}"
28-
script_url: https://raw.githubusercontent.com/sub-store-org/Sub-Store/release/cron-sync-artifacts.min.js
29-
- schedule:
30-
name: "{{{produce}}}"
31-
cron: "{{{produce_cronexp}}}"
32-
script_url: https://raw.githubusercontent.com/sub-store-org/Sub-Store/release/cron-sync-artifacts.min.js
33-
arguments:
34-
_compat.$argument: '"sub={{{produce_sub}}}&col={{{produce_col}}}"'
15+
- http_request:
16+
name: Sub-Store Core
17+
match: ^https?:\/\/sub\.store\/((download)|api\/(preview|sync|(utils\/node-info)))
18+
script_url: https://raw.githubusercontent.com/sub-store-org/Sub-Store/release/sub-store-1.min.js
19+
body_required: true
20+
- http_request:
21+
name: Sub-Store Simple
22+
match: ^https?:\/\/sub\.store
23+
script_url: https://raw.githubusercontent.com/sub-store-org/Sub-Store/release/sub-store-0.min.js
24+
body_required: true
25+
- schedule:
26+
name: '{{{sync}}}'
27+
cron: '{{{cronexp}}}'
28+
script_url: https://raw.githubusercontent.com/sub-store-org/Sub-Store/release/cron-sync-artifacts.min.js
29+
- schedule:
30+
name: '{{{produce}}}'
31+
cron: '{{{produce_cronexp}}}'
32+
script_url: https://raw.githubusercontent.com/sub-store-org/Sub-Store/release/cron-sync-artifacts.min.js
33+
arguments:
34+
_compat.$argument: '"sub={{{produce_sub}}}&col={{{produce_col}}}"'
3535
mitm:
3636
hostnames:
37+
includes:
3738
- sub.store

0 commit comments

Comments
 (0)