From 5036ae43760968aa7ad4decc5d314c7238dfcdbd Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Fri, 21 May 2021 01:09:14 +0200 Subject: feat(whitby): Initial ZNC configuration Bouncer to be used for TVL's IRC bots, see b/101 Change-Id: Ic9f71ecd94365d3baa31e0552b1ce16362f94557 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3124 Tested-by: BuildkiteCI Reviewed-by: flokli --- ops/machines/whitby/default.nix | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/ops/machines/whitby/default.nix b/ops/machines/whitby/default.nix index e558d10da9c1..5767be578737 100644 --- a/ops/machines/whitby/default.nix +++ b/ops/machines/whitby/default.nix @@ -216,6 +216,33 @@ in { }; }; + # Start a ZNC instance which bounces for tvlbot and owothia. + services.znc = { + enable = true; + useLegacyConfig = false; + config = { + LoadModule = [ + "webadmin" + "adminlog" + ]; + + User.admin = { + Admin = true; + Pass.password = { + Method = "sha256"; + Hash = "bb00aa8239de484c2925b1c3f6a196fb7612633f001daa9b674f83abe7e1103f"; + Salt = "TiB0Ochb1CrtpMTl;2;j"; + }; + }; + + Listener.l = { + Host = "localhost"; + Port = 2627; # bncr + SSL = false; + }; + }; + }; + # Start the Gerrit->IRC bot services.depot.clbot = { enable = true; -- cgit 1.4.1