20 lines
326 B
Nix
20 lines
326 B
Nix
{
|
|
device,
|
|
config,
|
|
...
|
|
}: {
|
|
services = {
|
|
blocky = {
|
|
enable = true;
|
|
settings = {
|
|
ports.dns = 53;
|
|
ports.http = 83838;
|
|
ports.dohPath = "/dns-query";
|
|
};
|
|
};
|
|
caddy.virtualHosts."blocky.${device.domain}".extraConfig = ''
|
|
reverse_proxy localhost:83838
|
|
'';
|
|
};
|
|
}
|