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

+6 -6
View File
@@ -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";