Complete refactor of project file structure

Fix incorrect handing of default node parameters in SSD subscription.
Fix unable to parse some Clash rule-providers (#289).
Fix not filtering inline comments in some Surge rulesets. (#285)
Add Cron task options.
Add clean context option for persisting a JS context across the whole request.
Replace JS engine with QuickJS.
This commit is contained in:
Tindy X
2021-03-23 18:09:00 +08:00
parent ba058e4e4b
commit 3d67406af6
88 changed files with 9404 additions and 6356 deletions

View File

@@ -244,6 +244,11 @@ clash.log_level=info
/v2ray=/sub?target=v2ray
/trojan=/sub?target=trojan
[tasks]
;Tasks to be run regularly during server execution.
;Format: Name`Cron_Expression`JS_Path`Timeout_in_seconds
;task=tick`0/10 * * * * ?`tick.js`3
[server]
;Address to bind on for Web Server
listen=0.0.0.0

View File

@@ -123,6 +123,12 @@ aliases:
- {uri: /v2ray, target: "/sub?target=v2ray"}
- {uri: /trojan, target: "/sub?target=trojan"}
tasks:
# - name: tick
# cronexp: "0/10 * * * * ?"
# path: tick.js
# timeout: 3
server:
listen: 0.0.0.0
port: 25500