Set up mailing for Forgejo

This commit is contained in:
Nicolas Jeannerod 2024-11-27 13:04:23 +01:00
parent 5134bab2d2
commit 89d25fa7a5
Signed by untrusted user: Niols
GPG key ID: 35DB9EC8886E1CB8

View file

@ -16,15 +16,19 @@ in
HTTP_ADDR = "127.0.0.1"; HTTP_ADDR = "127.0.0.1";
LANDING_PAGE = "explore"; 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 = { database = {
type = "mysql"; type = "mysql";
socket = "/run/mysqld/mysqld.sock"; socket = "/run/mysqld/mysqld.sock";