fix
This commit is contained in:
parent
ca385f3daa
commit
e3f4355ccc
|
@ -1,23 +1,26 @@
|
||||||
let
|
let
|
||||||
upstream = "https://one.one.one.one/dns-query";
|
upstream = "https://one.one.one.one/dns-query";
|
||||||
in {
|
in {
|
||||||
services.blocky = {
|
services = {
|
||||||
enable = true;
|
resolved.extraConfig = "DNSStubListener=no";
|
||||||
settings = {
|
blocky = {
|
||||||
ports.dns = 53;
|
enable = true;
|
||||||
upstreams.groups.default = [upstream];
|
settings = {
|
||||||
bootstrapDns = {
|
ports.dns = 53;
|
||||||
inherit upstream;
|
upstreams.groups.default = [upstream];
|
||||||
ips = ["1.1.1.1" "1.0.0.1"];
|
bootstrapDns = {
|
||||||
};
|
inherit upstream;
|
||||||
blocking = {
|
ips = ["1.1.1.1" "1.0.0.1"];
|
||||||
denylists.ads = ["https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts"];
|
};
|
||||||
clientGroupsBlock.default = ["ads"];
|
blocking = {
|
||||||
};
|
denylists.ads = ["https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts"];
|
||||||
caching = {
|
clientGroupsBlock.default = ["ads"];
|
||||||
minTime = "5m";
|
};
|
||||||
maxTime = "30m";
|
caching = {
|
||||||
prefetching = true;
|
minTime = "5m";
|
||||||
|
maxTime = "30m";
|
||||||
|
prefetching = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue