machines/magenta: fix smtp config

This commit is contained in:
Dmitriy Pleshevskiy 2023-03-03 13:58:11 +03:00
parent 0dd51b9e87
commit 0586a4037b
Signed by: pleshevskiy
GPG key ID: 79C4487B44403985
5 changed files with 7 additions and 6 deletions

Binary file not shown.

View file

@ -19,7 +19,7 @@ in
domain = hostname; domain = hostname;
rootUrl = "https://${hostname}"; rootUrl = "https://${hostname}";
appName = "Pleshevskiy Git Repositories"; appName = "Pleshevskiy Git Repositories";
mailerPasswordFile = config.age.secrets.gitea-mailserver-passfile.path; mailerPasswordFile = config.age.secrets.gitea-smtp-passfile.path;
database = { database = {
type = "postgres"; type = "postgres";
host = "/run/postgresql"; host = "/run/postgresql";
@ -88,9 +88,10 @@ in
mailer = { mailer = {
ENABLED = true; ENABLED = true;
MAILER_TYPE = "smtp"; MAILER_TYPE = "smtp";
FROM = "\"${giteaCfg.appName}\" <no-reply@pleshevski.ru>"; SMTP_ADDR = "mail.pleshevski.ru";
USER = "dmitriy@pleshevski.ru"; SMTP_PORT = 465;
HOST = "mail.pleshevski.ru:465"; USER = "gitea@pleshevski.ru";
FROM = "\"${giteaCfg.appName}\" <gitea@pleshevski.ru>";
}; };
openid = { openid = {
ENABLE_OPENID_SIGNIN = true; ENABLE_OPENID_SIGNIN = true;
@ -109,8 +110,8 @@ in
locations."/".proxyPass = "http://localhost:${toString giteaCfg.httpPort}/"; locations."/".proxyPass = "http://localhost:${toString giteaCfg.httpPort}/";
}; };
age.secrets.gitea-mailserver-passfile = { age.secrets.gitea-smtp-passfile = {
file = ../../../secrets/mailserver-users-jan-passfile.age; file = ../../../secrets/gitea-smtp-passfile.age;
owner = giteaCfg.user; owner = giteaCfg.user;
group = "gitea"; group = "gitea";
}; };

Binary file not shown.

Binary file not shown.