refactor(nixos): add ping to homepage

This commit is contained in:
2026-01-20 17:00:57 +05:30
parent 509a9b49ed
commit d803dd9dc8
4 changed files with 65 additions and 34 deletions

View File

@@ -0,0 +1,19 @@
{
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
'';
};
}