feat: update email logic to subject not user +
This commit is contained in:
parent
ede986080a
commit
6a652ed4f3
5 changed files with 136 additions and 27 deletions
|
|
@ -35,6 +35,12 @@ in
|
|||
description = "Mail domain for Q&A reply addresses.";
|
||||
};
|
||||
|
||||
qaReplyDomain = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = "extremist.software";
|
||||
description = "Domain used in the static Q&A Reply-To address (`qa@...`). Use a dedicated subdomain and route only that mail into the webhook to avoid impacting your main inbox if the Q&A API fails.";
|
||||
};
|
||||
|
||||
webhookSecretFile = lib.mkOption {
|
||||
type = lib.types.nullOr lib.types.path;
|
||||
default = null;
|
||||
|
|
@ -112,6 +118,7 @@ in
|
|||
"QA_DB_PATH=/var/lib/jetpham-qa/qa.db"
|
||||
"QA_NOTIFY_EMAIL=${cfg.qaNotifyEmail}"
|
||||
"QA_MAIL_DOMAIN=${cfg.qaMailDomain}"
|
||||
"QA_REPLY_DOMAIN=${cfg.qaReplyDomain}"
|
||||
];
|
||||
Restart = "on-failure";
|
||||
RestartSec = 5;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue