2024-03-16 22:30:15 +01:00
|
|
|
{
|
|
|
|
services = {
|
|
|
|
blocky = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
ports = {
|
|
|
|
dns = 53;
|
|
|
|
http = 4000;
|
|
|
|
};
|
|
|
|
upstreams = {
|
|
|
|
groups = {
|
|
|
|
default = [ "127.0.0.1:5335" ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
blocking = {
|
2024-03-16 22:46:09 +01:00
|
|
|
blackLists = {
|
2024-03-16 22:30:15 +01:00
|
|
|
ads = [
|
|
|
|
"https://big.oisd.nl/domainswild"
|
|
|
|
"https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews/hosts"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
clientGroupsBlock = {
|
|
|
|
default = [ "ads" ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
customDNS = {
|
|
|
|
mapping = {
|
|
|
|
"ci.datarift.nl" = "10.0.0.251";
|
|
|
|
"home.datarift.nl" = "10.0.0.251";
|
|
|
|
"frigate.datarift.nl" = "10.0.0.251";
|
|
|
|
"git.datarift.nl" = "10.0.0.203";
|
|
|
|
"loki.datarift.nl" = "10.0.0.4";
|
|
|
|
"minio.datarift.nl" = "10.0.0.251";
|
|
|
|
"minio-admin.datarift.nl" = "10.0.0.251";
|
|
|
|
"mqtt.datarift.nl" = "10.0.0.254";
|
|
|
|
"nix-cache.datarift.nl" = "10.0.0.209";
|
|
|
|
"saga.datarift.nl" = "10.0.0.251";
|
|
|
|
"track.datarift.nl" = "10.0.0.254";
|
|
|
|
"vidz.datarift.nl" = "10.0.0.211";
|
2024-03-22 09:56:16 +01:00
|
|
|
|
|
|
|
# Horus
|
|
|
|
"vaultserver.horus.nu" = "192.168.4.32";
|
2024-03-16 22:30:15 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
prometheus = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
queryLog = {
|
|
|
|
type = "csv";
|
|
|
|
target = "/var/lib/blocky/querylog";
|
|
|
|
logRetentionDays = 7;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|