2023-12-04 00:09:24 +02:00
|
|
|
{ config, depot, ... }:
|
2023-06-05 01:54:23 +03:00
|
|
|
|
|
|
|
{
|
|
|
|
services.search = {
|
|
|
|
nodes.host = [ "VEGAS" ];
|
|
|
|
nixos.host = ./host.nix;
|
2024-07-08 16:31:58 +03:00
|
|
|
secrets.default.nodes = config.services.search.nodes.host;
|
2023-06-05 01:54:23 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
monitoring.blackbox.targets.search = {
|
2023-08-31 01:55:45 +03:00
|
|
|
address = "https://search.${depot.lib.meta.domain}/healthz";
|
2023-06-05 01:54:23 +03:00
|
|
|
module = "https2xx";
|
|
|
|
};
|
2023-12-04 00:09:24 +02:00
|
|
|
|
|
|
|
dns.records.search.target = map
|
|
|
|
(node: depot.hours.${node}.interfaces.primary.addrPublic)
|
|
|
|
config.services.search.nodes.host;
|
2023-06-05 01:54:23 +03:00
|
|
|
}
|