Add emails to gitea

Also more networking changes lmao
This commit is contained in:
2023-07-21 12:52:08 +01:00
parent 882ab2d92f
commit 47ac1ae1be
5 changed files with 41 additions and 3 deletions

View File

@@ -3,6 +3,14 @@
pkgs,
...
}: {
age.secrets = {
sendmail_email_key_gitea = {
file = ../../secrets/sendmail_email_key_gitea.age;
owner = "gitea";
group = "gitea";
};
};
services.gitea = {
enable = true;
appName = "The Broccoli Patch"; # Give the site a name
@@ -23,11 +31,22 @@
DOMAIN = "git.broccoli.town";
};
service = {
REGISTER_EMAIL_CONFIRM = true;
DISABLE_REGISTRATION = true;
};
repository = {
ENABLE_PUSH_CREATE_USER = true;
};
mailer = {
ENABLED = true;
FROM = "gitea@broccoli.town";
MAILER_TYPE = "smtp";
SMTP_ADDR = "smtp.sendgrid.net";
SMTP_PORT = 465;
IS_TLS_ENABLED = true;
USER = "apikey";
};
};
mailerPasswordFile = config.age.secrets.sendmail_email_key_gitea.path;
};
}