mirror of
https://github.com/sub-store-org/Sub-Store.git
synced 2026-11-27 23:13:43 +00:00
- Node 默认允许 `*`(兼容旧行为),可通过环境变量 `SUB_STORE_CORS_ALLOWED_ORIGINS` 配置 - 代理 App 模块默认 `https://sub-store.vercel.app`, 可通过模块参数 `cors` 配置
24 lines
1.5 KiB
Plaintext
24 lines
1.5 KiB
Plaintext
#!name=Sub-Store
|
|
#!desc=高级订阅管理工具. 定时任务默认为每天 23 点 55 分, 可在插件设置中自定义. 定时任务指定时将订阅/文件上传到私有 Gist. 在前端, 叫做 '同步' 或 '同步配置'
|
|
#!openUrl=https://sub.store
|
|
#!author=Peng-YM
|
|
#!homepage=https://github.com/sub-store-org/Sub-Store
|
|
#!icon=https://raw.githubusercontent.com/58xinian/icon/master/Sub-Store1.png
|
|
|
|
[Argument]
|
|
cron=input, "55 23 * * *", tag=定时参数, desc=这里需要输入符合CRON表达式的参数
|
|
sync_success_notify=switch, true, tag=同步成功通知, desc=同步配置全部成功时是否发送完成通知
|
|
cors=input, "https://sub-store.vercel.app", tag=CORS允许来源, desc=允许浏览器跨域访问 Sub-Store 后端的 origin. 多个用 , 连接. 设为 * 可恢复旧行为
|
|
|
|
[Rule]
|
|
DOMAIN,sub-store.vercel.app,PROXY
|
|
|
|
[MITM]
|
|
hostname=sub.store
|
|
|
|
[Script]
|
|
http-request ^https?:\/\/sub\.store\/((download)|api\/(preview|sync|(utils\/node-info))) script-path=https://github.com/sub-store-org/Sub-Store/releases/latest/download/sub-store-1.min.js, requires-body=true, timeout=120, tag=Sub-Store Core, argument="cors={cors}"
|
|
http-request ^https?:\/\/sub\.store script-path=https://github.com/sub-store-org/Sub-Store/releases/latest/download/sub-store-0.min.js, requires-body=true, timeout=120, tag=Sub-Store Simple, argument="cors={cors}"
|
|
|
|
cron {cron} script-path=https://github.com/sub-store-org/Sub-Store/releases/latest/download/cron-sync-artifacts.min.js, timeout=120, tag=Sub-Store Sync, argument=[{sync_success_notify}]
|