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;