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:
144 files changed
+13198
-14066
No files matched your search
@@ -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";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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
|
||||
)
|
||||
|
||||
|
||||
Reference in new issue
Block a user