feat: refactored and updated smtp config

This commit is contained in:
Nick 2025-10-22 16:48:50 -05:00
parent 1b98c4eff8
commit c469f48b4e
18 changed files with 79 additions and 105 deletions

View file

@ -52,7 +52,7 @@ in
name = service.name;
host = "/run/postgresql";
user = service.name;
passwordFile = config.sops.secrets.mastodon-database.path;
passwordFile = config.sops.secrets."${service.name}-database".path;
};
extraConfig = {
SINGLE_USER_MODE = "true";
@ -105,11 +105,11 @@ in
smtp = {
authenticate = true;
createLocally = false;
fromAddress = "upRootNutrition <${service.email.address0}>";
fromAddress = "upRootNutrition <${smtp.email.address1}>";
host = smtp.hostname;
passwordFile = config.sops.secrets.mastodon-smtp.path;
port = smtp.ports.port0;
user = service.email.address0;
passwordFile = config.sops.secrets."${service.name}-smtp".path;
port = smtp.ports.port1;
user = smtp.email.address1;
};
};
caddy = {