machines/magenta: fix smtp config
This commit is contained in:
parent
0dd51b9e87
commit
0586a4037b
5 changed files with 7 additions and 6 deletions
Binary file not shown.
|
@ -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.
BIN
secrets/gitea-smtp-passfile.age
Normal file
BIN
secrets/gitea-smtp-passfile.age
Normal file
Binary file not shown.
BIN
secrets/mailserver-users-gitea-passfile.age
Normal file
BIN
secrets/mailserver-users-gitea-passfile.age
Normal file
Binary file not shown.
Loading…
Reference in a new issue