cluster/services/irc: register with consul

This commit is contained in:
Max Headroom 2023-03-06 00:12:00 +01:00
parent d164fa4536
commit 363c54b0f6

View file

@ -1,4 +1,4 @@
{ cluster, config, pkgs, tools, ... }:
{ cluster, config, lib, pkgs, tools, ... }:
let
inherit (tools.meta) adminEmail;
@ -106,4 +106,16 @@ in {
done
'';
};
consul.services.ngircd = {
definition.service = {
name = "irc";
address = linkSecure.ipv4;
port = linkSecure.port;
checks = lib.singleton {
interval = "60s";
tcp = link.tuple;
};
};
};
}