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
@@ -16,7 +16,7 @@ let
|
||||
enable = true;
|
||||
proxy = {
|
||||
enable = true;
|
||||
xray.enable = true;
|
||||
backend = "xray";
|
||||
selection = "urltest";
|
||||
outbounds = [
|
||||
{
|
||||
@@ -34,15 +34,13 @@ let
|
||||
block.domains = [ "block.example" ];
|
||||
};
|
||||
tproxy.enable = true;
|
||||
tproxy.perApp.enable = true;
|
||||
tun = {
|
||||
enable = true;
|
||||
perApp.enable = true;
|
||||
};
|
||||
tun.enable = true;
|
||||
};
|
||||
perAppRouting = {
|
||||
enable = true;
|
||||
createDefaultProfiles = true;
|
||||
tun.enable = true;
|
||||
tproxy.enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
@@ -81,6 +79,8 @@ let
|
||||
xrayBackendJqFilter =
|
||||
import ../../../modules/proxy-suite/service/script-blocks/backend-jq-filter.nix
|
||||
{
|
||||
lib = pkgs.lib;
|
||||
proxyInboundsGuardPrivate = false;
|
||||
pureXrayEnabled = true;
|
||||
selectionMode = xrayFixture.config.services.proxy-suite.proxy.selection;
|
||||
};
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
);
|
||||
balancer = builtins.head xrayTproxyConfig.routing.balancers;
|
||||
in
|
||||
assert xrayFixture.config.services.proxy-suite.proxy.xray.enable;
|
||||
assert xrayFixture.config.services.proxy-suite.proxy.backend == "xray";
|
||||
assert xrayFixture.config.systemd.services ? "proxy-suite-socks";
|
||||
assert xrayFixture.config.systemd.services ? "proxy-suite-tproxy";
|
||||
assert xrayFixture.config.systemd.services ? "proxy-suite-tun";
|
||||
|
||||
Reference in new issue
Block a user