chore: reorganize repository layout and optimize README
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"gitea": {
|
||||
"base_url": "https://git.halonice.com",
|
||||
"owner": "yuanzhen869",
|
||||
"repo": "ios-rule-script-full",
|
||||
"ref": "main",
|
||||
"token_env": "GITEA_TOKEN"
|
||||
},
|
||||
"source": {
|
||||
"root": "rule/Surge",
|
||||
"filename_pattern": "{name}.list",
|
||||
"include_categories": [],
|
||||
"exclude_categories": [
|
||||
"Cloud",
|
||||
"Assassin'sCreed"
|
||||
],
|
||||
"mode": "local",
|
||||
"local_root": "data/upstream"
|
||||
},
|
||||
"output": {
|
||||
"dir": "dist",
|
||||
"clash_no_resolve": false,
|
||||
"mihomo_no_resolve": false
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"gitea": {
|
||||
"base_url": "https://gitea.example.com",
|
||||
"owner": "rules",
|
||||
"repo": "ios_rule_script",
|
||||
"ref": "main",
|
||||
"token_env": "GITEA_TOKEN"
|
||||
},
|
||||
"source": {
|
||||
"mode": "local",
|
||||
"local_root": "data/upstream",
|
||||
"root": "rule/Surge",
|
||||
"filename_pattern": "{name}.list",
|
||||
"include_categories": [],
|
||||
"exclude_categories": []
|
||||
},
|
||||
"output": {
|
||||
"dir": "dist",
|
||||
"clash_no_resolve": false,
|
||||
"mihomo_no_resolve": false
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
[gitea]
|
||||
base_url = "https://gitea.example.com"
|
||||
owner = "rules"
|
||||
repo = "ios_rule_script"
|
||||
ref = "main"
|
||||
token_env = "GITEA_TOKEN"
|
||||
|
||||
[source]
|
||||
# mode=gitea: read source via Gitea API
|
||||
# mode=local: read source from local filesystem cache (recommended with sync script)
|
||||
mode = "local"
|
||||
local_root = "data/upstream"
|
||||
# Usually this is where Surge source rules are stored.
|
||||
root = "rule/Surge"
|
||||
filename_pattern = "{name}.list"
|
||||
include_categories = []
|
||||
exclude_categories = []
|
||||
|
||||
[output]
|
||||
dir = "dist"
|
||||
# true: IP-CIDR/IP-CIDR6 in Clash payload include no-resolve
|
||||
clash_no_resolve = false
|
||||
# true: IP-CIDR/IP-CIDR6 in Mihomo payload include no-resolve
|
||||
mihomo_no_resolve = false
|
||||
Reference in New Issue
Block a user