diff options
author | Franck Cuny <franck@fcuny.net> | 2022-05-27 11:47:02 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2022-05-27 11:49:19 -0700 |
commit | aa8a217104461897c1a8f6a49e32994343df6e16 (patch) | |
tree | f6bd4629a28fcc898613fbdea1a86e23ef512889 /modules | |
parent | fix(gerrit): set the OAUTH client ID (diff) | |
download | world-aa8a217104461897c1a8f6a49e32994343df6e16.tar.gz |
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 <franck@fcuny.net>
Diffstat (limited to 'modules')
-rw-r--r-- | modules/services/gerrit/default.nix | 11 |
1 files changed, 10 insertions, 1 deletions
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 <gerrit@fcuny.net>"; + includeDiff = true; + smtpEncryption = "tls"; + smtpServer = "smtp.fastmail.com"; + smtpServerPort = 587; + }; }; }; |