From 9e75839adaca3598833cf88fa561b89e55e7d72d Mon Sep 17 00:00:00 2001 From: Tom Hubrecht Date: Tue, 16 Apr 2024 09:32:32 +0200 Subject: [PATCH] feat(forgejo): Update config, and enable mail notifications --- machines/storage01/forgejo.nix | 37 +++++++++++++++++++--------------- 1 file changed, 21 insertions(+), 16 deletions(-) diff --git a/machines/storage01/forgejo.nix b/machines/storage01/forgejo.nix index 59d846e..9ba0802 100644 --- a/machines/storage01/forgejo.nix +++ b/machines/storage01/forgejo.nix @@ -24,6 +24,26 @@ in APP_NAME = "Forge git de la DGNum"; }; + actions = { + ENABLED = true; + DEFAULT_ACTIONS_URL = "https://gitea.com"; + }; + + admin = { + DEFAULT_EMAIL_NOTIFICATIONS = "enabled"; + }; + + log.LEVEL = "Warn"; + + mailer = { + ENABLED = true; + FROM = "git@infra.dgnum.eu"; + PROTOCOL = "smtps"; + SMTP_ADDR = "kurisu.lahfa.xyz"; + SMTP_PORT = 465; + USER = "web-services@infra.dgnum.eu"; + }; + server = { ROOT_URL = "https://${host}/"; DOMAIN = host; @@ -34,28 +54,13 @@ in service = { EMAIL_DOMAIN_ALLOWLIST = "dgnum.eu,*"; + ENABLE_NOTIFY_MAIL = true; DISABLE_REGISTRATION = false; REGISTER_EMAIL_CONFIRM = true; }; - log.LEVEL = "Warn"; - ui.THEMES = "forgejo-auto,forgejo-light,forgejo-dark"; - - actions = { - ENABLED = true; - DEFAULT_ACTIONS_URL = "https://gitea.com"; - }; - - mailer = { - ENABLED = true; - FROM = "git@infra.dgnum.eu"; - PROTOCOL = "smtps"; - SMTP_ADDR = "kurisu.lahfa.xyz"; - SMTP_PORT = 465; - USER = "web-services@infra.dgnum.eu"; - }; }; mailerPasswordFile = config.age.secrets."forgejo-mailer_password_file".path;