update(forgejo): password recovery

This commit is contained in:
Filippo Berto 2025-11-14 10:01:23 +01:00
parent 1dc935004d
commit 345b8dd60b
No known key found for this signature in database
GPG key ID: F1D17F9BCEC62FBC
3 changed files with 32 additions and 1 deletions

View file

@ -1,4 +1,10 @@
{
{ config, ... }: {
age.secrets.forgejo_mailer_password = {
file = ../secrets/forgejo_mailer_password.age;
owner = "forgejo";
};
services.forgejo = {
enable = true;
database.type = "postgres";
@ -20,6 +26,15 @@
ENABLED = true;
DEFAULT_ACTIONS_URL = "github";
};
mailer = {
ENABLED = true;
SMTP_ADDR = "smtp.gmail.com";
FROM = "filippoberto95@gmail.com";
USER = "filippoberto95@gmail.com";
};
};
secrets = {
mailer.PASSWD = config.age.secrets.forgejo_mailer_password.path;
};
};
}