Add emails to gitea
Also more networking changes lmao
This commit is contained in:
@@ -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;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user