diff --git a/infra/vm02116/forgejo.nix b/infra/vm02116/forgejo.nix index 49bbb32..157e8d6 100644 --- a/infra/vm02116/forgejo.nix +++ b/infra/vm02116/forgejo.nix @@ -16,15 +16,19 @@ in HTTP_ADDR = "127.0.0.1"; LANDING_PAGE = "explore"; }; - mailer = { - ENABLED = true; - SMTP_ADDR = "mail.protagio.nl"; - SMTP_PORT = "587"; - FROM = "git@fediversity.eu"; - USER = "git@fediversity.eu"; - }; }; - mailerPasswordFile = "/var/lib/forgejo/data/keys/forgejo-mailpw"; + + settings.service.ENABLE_NOTIFY_MAIL = true; + settings.mailer = { + ENABLED = true; + PROTOCOL = "smtp+starttls"; + SMTP_ADDR = "mail.protagio.nl"; + SMTP_PORT = "587"; + FROM = "git@fediversity.eu"; + USER = "git@fediversity.eu"; + }; + secrets.mailer.PASSWD = "/var/lib/forgejo/data/keys/forgejo-mailpw"; + database = { type = "mysql"; socket = "/run/mysqld/mysqld.sock";