mirror of
https://github.com/asdlokj1qpi233/subconverter.git
synced 2025-10-28 12:22:37 +00:00
Enhancements
Add insert_url option to add node(s) before all exported subscriptions. Add /getprofile interface for easy access. Add an option to control whether to add Subscription-UserInfo or not. Add include/exclude settings to external configurations. Allow loading local subscriptions in API mode if the right token is provided. Optimize codes.
This commit is contained in:
@@ -51,3 +51,7 @@ clash_rule_base=base/forcerule.yml
|
||||
;Options for adding emojis
|
||||
;emoji=(流量|时间|应急),🏳️🌈
|
||||
;emoji=阿根廷,🇦🇷
|
||||
|
||||
;Optims for filtering nodes
|
||||
;include_remarks=
|
||||
;exclude_remarks=
|
||||
|
||||
@@ -1,22 +1,25 @@
|
||||
custom:
|
||||
enable_rule_generator: false
|
||||
overwrite_original_rules: false
|
||||
|
||||
custom_proxy_group:
|
||||
- {import: snippets/groups_forcerule.txt}
|
||||
|
||||
# surge_ruleset:
|
||||
# - {import: snippets/ruleset_remote.txt}
|
||||
|
||||
clash_rule_base: base/forcerule.yml
|
||||
# surge_rule_base: base/surge.conf
|
||||
# surfboard_rule_base: base/surfboard.conf
|
||||
# mellow_rule_base: base/mellow.conf
|
||||
# quan_rule_base: base/quan.conf
|
||||
# quanx_rule_base: base/quanx.conf
|
||||
|
||||
# rename_node:
|
||||
# - {import: snippet/rename.txt}
|
||||
|
||||
# emoji:
|
||||
# - {import: snippets/emoji.txt}
|
||||
custom:
|
||||
enable_rule_generator: false
|
||||
overwrite_original_rules: false
|
||||
|
||||
custom_proxy_group:
|
||||
- {import: snippets/groups_forcerule.txt}
|
||||
|
||||
# surge_ruleset:
|
||||
# - {import: snippets/ruleset_remote.txt}
|
||||
|
||||
clash_rule_base: base/forcerule.yml
|
||||
# surge_rule_base: base/surge.conf
|
||||
# surfboard_rule_base: base/surfboard.conf
|
||||
# mellow_rule_base: base/mellow.conf
|
||||
# quan_rule_base: base/quan.conf
|
||||
# quanx_rule_base: base/quanx.conf
|
||||
|
||||
# rename_node:
|
||||
# - {import: snippet/rename.txt}
|
||||
|
||||
# emoji:
|
||||
# - {import: snippets/emoji.txt}
|
||||
|
||||
# include_remarks: []
|
||||
# exclude_remarks: []
|
||||
|
||||
@@ -2,6 +2,7 @@ common:
|
||||
api_mode: false
|
||||
api_access_token: password
|
||||
default_url: []
|
||||
insert_url: []
|
||||
exclude_remarks: ["(到期|剩余流量|时间|官网|产品)"]
|
||||
include_remarks: []
|
||||
clash_rule_base: base/simple_base.yml
|
||||
@@ -8,6 +8,9 @@ api_access_token=password
|
||||
;Default URLs, used when no URL is provided in request, use "|" to separate multiple subscription links, supports local files/URL
|
||||
default_url=
|
||||
|
||||
;URLs to insert before subscription links, can be used to add node(s) to all exported subscriptions, use "|" to separate multiple subscription links, supports local files/URL
|
||||
insert_url=
|
||||
|
||||
;Exclude nodes which remarks match the following patterns. Supports regular expression.
|
||||
exclude_remarks=(到期|剩余流量|时间|官网|产品)
|
||||
;exclude_remarks=(other rule)
|
||||
|
||||
12
base/profiles/example_profile.ini
Normal file
12
base/profiles/example_profile.ini
Normal file
@@ -0,0 +1,12 @@
|
||||
[Profile]
|
||||
;This is an example profile for the /getprofile interface
|
||||
;The options works the same as the arguments in the /sub interface
|
||||
;Arguments that needed URLEncode before is not needed here
|
||||
;For more available options, please check the readme section
|
||||
|
||||
target=clash
|
||||
url=ss://Y2hhY2hhMjAtaWV0Zi1wb2x5MTMwNTpwYXNzd29yZA@www.example.com:1080#Example
|
||||
;config=config/example_external_config.ini
|
||||
;surge_ver=3
|
||||
;udp=true
|
||||
;emoji=false
|
||||
Reference in New Issue
Block a user