From 06748dac1db064d204482035e7c11ed9de71cf1b Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Thu, 2 May 2024 18:54:38 +0200 Subject: [PATCH] Enable mail notification in Gitea Reviewed-by: Aleix Roca Nonell --- m/hut/gitea.nix | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/m/hut/gitea.nix b/m/hut/gitea.nix index 651e2c8..22a494b 100644 --- a/m/hut/gitea.nix +++ b/m/hut/gitea.nix @@ -13,7 +13,18 @@ LANDING_PAGE = "explore"; }; metrics.ENABLED = true; - service.REGISTER_MANUAL_CONFIRM = true; + service = { + REGISTER_MANUAL_CONFIRM = true; + ENABLE_NOTIFY_MAIL = true; + }; + + mailer = { + ENABLED = true; + FROM = "jungle-robot@bsc.es"; + PROTOCOL = "sendmail"; + SENDMAIL_PATH = "/run/wrappers/bin/sendmail"; + SENDMAIL_ARGS = "--"; + }; }; };