Add email to forgejo

This commit is contained in:
batteredbunny 2024-03-22 14:00:21 +02:00 committed by batteredbunny
parent 60fb3b676c
commit 2b75ce37b4

View file

@ -448,6 +448,7 @@ in {
forgejo = {
enable = true;
database.type = "postgres";
mailerPasswordFile = "/etc/secrets/forge-email";
settings = {
server = {
DOMAIN = "forge.catnip.ee";
@ -456,6 +457,14 @@ in {
START_SSH_SERVER = true;
ROOT_URL = "https://${config.services.forgejo.settings.server.DOMAIN}";
};
mailer = {
ENABLED = true;
FROM = "forge@catnip.ee";
PROTOCOL = "smtps";
SMTP_ADDR = "mx1.sly.ee";
SMTP_PORT = 465;
USER = "forge@catnip.ee";
};
service = {
DISABLE_REGISTRATION = true;
};