refactor(nixos): add ping to homepage
This commit is contained in:
19
nixos/tako/services/blocky.nix
Normal file
19
nixos/tako/services/blocky.nix
Normal 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
|
||||
'';
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user