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
@@ -0,0 +1,35 @@
|
||||
{ lib, ... }:
|
||||
|
||||
let
|
||||
inherit (lib) mkOption;
|
||||
t = import ./types.nix { inherit lib; };
|
||||
cloudflare = {
|
||||
type = "udp";
|
||||
address = "1.1.1.1";
|
||||
port = 53;
|
||||
};
|
||||
in
|
||||
{
|
||||
options.services.proxy-suite.proxy.dns = {
|
||||
local = mkOption {
|
||||
type = t.dnsUpstreamType;
|
||||
default = cloudflare;
|
||||
description = "Resolver for direct traffic and the default domain resolver. Goes through the proxy in global TUN mode.";
|
||||
example = {
|
||||
type = "tcp";
|
||||
address = "9.9.9.9";
|
||||
};
|
||||
};
|
||||
|
||||
remote = mkOption {
|
||||
type = t.dnsUpstreamType;
|
||||
default = cloudflare;
|
||||
description = "Resolver used through the proxy; the DNS default when proxy.routing.default is proxy.";
|
||||
example = {
|
||||
type = "tls";
|
||||
address = "1.1.1.1";
|
||||
port = 853;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user