refactor: overhaul of options and features

Includes, but not limited to:
- zapret2 support
- declarative inbounds
- proxy-ctl revamp
- automatic proxy learning
This commit is contained in:
FUFSoB committed 2026-09-13 22:37:45 +05:00
1 parent b892384527
commit fdb2b08790
144 files changed
+13198 -14066

No files matched your search

+7 -7
View File
@@ -33,7 +33,7 @@ let
enable = true;
proxy = {
enable = true;
singBox.enable = true;
backend = "sing-box";
outbounds = [
{
tag = "primary";
@@ -58,7 +58,7 @@ let
ruDisabledFixture = evalProxySuite [
baseModule
{
services.proxy-suite.proxy.routing.enableRuDirect = false;
services.proxy-suite.proxy.routing.directRu = false;
}
];
ruDisabledRules = mkRoutingRules ruDisabledFixture;
@@ -68,7 +68,7 @@ let
baseModule
{
services.proxy-suite.proxy.routing = {
enableRuDirect = false;
directRu = false;
direct.geosites = [ "category-ru" ];
};
}
@@ -99,7 +99,7 @@ let
proxyDirectConfig = mkTProxyConfig (evalProxySuite [
baseModule
{
services.proxy-suite.proxy.proxyByDefault = false;
services.proxy-suite.proxy.routing.default = "direct";
}
]);
@@ -110,7 +110,7 @@ let
enable = true;
proxy = {
enable = true;
singBox.enable = true;
backend = "sing-box";
outbounds = [
{
tag = "test-proxy";
@@ -121,8 +121,8 @@ let
urlTest = {
url = "https://telegram.org";
interval = "1m";
tolerance = 100;
};
singBox.urlTest.tolerance = 100;
};
};
}
@@ -146,7 +146,7 @@ let
enable = true;
proxy = {
enable = true;
singBox.enable = true;
backend = "sing-box";
};
};
}
+1 -1
View File
@@ -43,7 +43,7 @@
in
assert cfg.url == "https://www.gstatic.com/generate_204";
assert cfg.interval == "3m";
assert minimal.config.services.proxy-suite.proxy.singBox.urlTest.tolerance == 50;
assert minimal.config.services.proxy-suite.proxy.urlTest.tolerance == 50;
true
)