depot/cluster/services/search/default.nix

19 lines
451 B
Nix
Raw Permalink Normal View History

{ config, depot, ... }:
{
services.search = {
nodes.host = [ "VEGAS" ];
nixos.host = ./host.nix;
secrets.default.nodes = config.services.search.nodes.host;
};
monitoring.blackbox.targets.search = {
2023-08-31 01:55:45 +03:00
address = "https://search.${depot.lib.meta.domain}/healthz";
module = "https2xx";
};
dns.records.search.target = map
(node: depot.hours.${node}.interfaces.primary.addrPublic)
config.services.search.nodes.host;
}