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

Binary file not shown.

Binary file not shown.