services.gitlab: fix smtp

This commit is contained in:
陈浩南 2023-11-20 21:19:24 +08:00
parent da4a7e33ff
commit 19729fb334
2 changed files with 5 additions and 3 deletions

View File

@ -274,7 +274,7 @@
[ "nix-store" "xn--qbtm095lrg0bfka60z" ])) [ "nix-store" "xn--qbtm095lrg0bfka60z" ]))
// (builtins.listToAttrs (builtins.map // (builtins.listToAttrs (builtins.map
(site: { name = "${site}.chn.moe"; value.upstream.address = "internal.vps7.chn.moe"; }) (site: { name = "${site}.chn.moe"; value.upstream.address = "internal.vps7.chn.moe"; })
[ "xn--s8w913fdga" "misskey" "synapse" "send" "kkmeeting" "api" ])); [ "xn--s8w913fdga" "misskey" "synapse" "send" "kkmeeting" "api" "gitlab" ]));
applications = applications =
{ {
element.instances."element.chn.moe" = {}; element.instances."element.chn.moe" = {};

View File

@ -21,11 +21,13 @@ inputs:
smtp = smtp =
{ {
enable = true; enable = true;
address = "mail.chn.moe";
username = "bot@chn.moe"; username = "bot@chn.moe";
passwordFile = inputs.config.sops.secrets."gitlab/mail".path;
tls = true; tls = true;
enableStartTLSAuto = false;
port = 465; port = 465;
domain = gitlab.hostname; domain = gitlab.hostname;
passwordFile = inputs.config.sops.secrets."gitlab/mail".path;
authentication = "login"; authentication = "login";
}; };
secrets = secrets =
@ -36,7 +38,7 @@ inputs:
dbFile = inputs.config.sops.secrets."gitlab/dbFile".path; dbFile = inputs.config.sops.secrets."gitlab/dbFile".path;
}; };
initialRootPasswordFile = inputs.config.sops.secrets."gitlab/root".path; initialRootPasswordFile = inputs.config.sops.secrets."gitlab/root".path;
initialRootEmail = "chn@chn.moe"; initialRootEmail = "bot@chn.moe";
databasePasswordFile = inputs.config.sops.secrets."gitlab/db".path; databasePasswordFile = inputs.config.sops.secrets."gitlab/db".path;
databaseHost = "127.0.0.1"; databaseHost = "127.0.0.1";
}; };