From aa8a217104461897c1a8f6a49e32994343df6e16 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Fri, 27 May 2022 11:47:02 -0700 Subject: feat(gerrit): enable sending emails Configure gerrit to send emails using fastmail's SMTP servers. Change-Id: I658373a2c1e9b3c5dcbe214a02ebe8ca1be69580 Reviewed-on: https://cl.fcuny.net/c/world/+/81 Reviewed-by: Franck Cuny --- modules/services/gerrit/default.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/modules/services/gerrit/default.nix b/modules/services/gerrit/default.nix index 094e1b1..ed43ce5 100644 --- a/modules/services/gerrit/default.nix +++ b/modules/services/gerrit/default.nix @@ -71,7 +71,16 @@ in { auth.gitBasicAuthPolicy = "HTTP"; # Receiving email is not currently supported. - sendemail = { enable = false; }; + sendemail = { + enable = true; + html = false; + connectTimeout = "10sec"; + from = "gerrit "; + includeDiff = true; + smtpEncryption = "tls"; + smtpServer = "smtp.fastmail.com"; + smtpServerPort = 587; + }; }; }; -- cgit 1.4.1