add mail settings for discourse

This commit is contained in:
Yisroel Baum 2026-06-03 11:24:43 +03:00
parent b6c309a2b3
commit e401d1040f
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
2 changed files with 37 additions and 3 deletions

View file

@ -10,13 +10,24 @@
admin = {
email = "yisroel.d.baum@gmail.com";
fullName = "Yisroel Baum";
passwordFile = "/run/secrets/discourse-admin-password";
passwordFile = config.sops.secrets."discourse-admin-password".path;
username = "yisroeldbaum";
};
database.ignorePostgresqlVersion = true;
hostname = "discourse.torahimderecheretz.com";
mail = {};
secretKeyBaseFile = "/run/secrets/discourse-secret-key";
mail = {
notificationEmailAddress = "noreply@discourse.torahimderecheretz.com";
contactEmailAddress = "";
outgoing = {
serverAddress = "in-v3.mailjet.com";
port = 587;
username = "1ebdd73d944240c1a9c3201e52a1e8c6";
passwordFile = config.sops.secrets."discourse-mail-key".path;
authentication = "login";
};
};
secretKeyBaseFile = config.sops.secrets."discourse-secret-key".path;
siteSettings = {
required = {
title = "Torah Im Derech Eretz";
@ -40,5 +51,12 @@
owner = "discourse";
group = "discourse";
};
"discourse-mail-key" = {
sopsFile = ./secrets/discourseMailKey.yaml;
mode = "0400";
key = "key";
owner = "discourse";
group = "discourse";
};
};
}