feat(ops): configure email for Forgejo
This configures Forgejo to use the "Forgejo" Message Stream on our "Snix" server in Postmark. Change-Id: I298966a8b43b55b0f1992a8fedf0fffcd6dde472 Reviewed-on: https://cl.snix.dev/c/snix/+/30206 Autosubmit: Florian Klink <flokli@flokli.de> Tested-by: besadii Reviewed-by: Ryan Lahfa <masterancpp@gmail.com>
This commit is contained in:
parent
3191a6c8d0
commit
d99819280a
4 changed files with 14 additions and 10 deletions
|
|
@ -128,6 +128,7 @@ in
|
|||
mode = "0440";
|
||||
group = "git";
|
||||
};
|
||||
forgejo-smtp-passwd.file = secretFile "forgejo-smtp-passwd";
|
||||
grafana-oauth-secret = {
|
||||
file = secretFile "grafana-oauth-secret";
|
||||
mode = "0440";
|
||||
|
|
|
|||
|
|
@ -102,7 +102,7 @@ in
|
|||
group = "git";
|
||||
|
||||
# Secret mail config.
|
||||
# mailerPasswordFile = config.age.secrets.forgejoSmtpSecret.path;
|
||||
secrets.mailer.PASSWD = config.age.secrets.forgejo-smtp-passwd.path;
|
||||
|
||||
# Server and database config.
|
||||
settings = {
|
||||
|
|
@ -198,15 +198,16 @@ in
|
|||
DISABLE_GIT_HOOKS = false;
|
||||
};
|
||||
|
||||
# Note: PASSWD is set by NixOS up.
|
||||
# mailer = {
|
||||
# ENABLED = true;
|
||||
# PROTOCOL = "smtps";
|
||||
# SMTP_ADDR = "";
|
||||
# SMTP_PORT = 465;
|
||||
# USER = "";
|
||||
# FROM = "";
|
||||
# };
|
||||
# Note: PASSWD is set up by the NixOS module, which sets FORGEJO__MAILER__PASSWD__FILE.
|
||||
# https://forum.gitea.com/t/email-could-not-initiate-smtp-session-error/8164/14
|
||||
mailer = {
|
||||
ENABLED = true;
|
||||
PROTOCOL = "smtp+starttls";
|
||||
SMTP_ADDR = "smtp.postmarkapp.com";
|
||||
SMTP_PORT = 2525;
|
||||
USER = "PM-T-forgejo-48CsFdjTEW5_tALcpact0HG";
|
||||
FROM = "\"Snix Forgejo\" <forgejo@snix.dev>";
|
||||
};
|
||||
|
||||
ui = {
|
||||
# Add the used emojis from https://volpeon.ink/emojis/ as well as https://github.com/chr-1x/dragn-emoji
|
||||
|
|
|
|||
BIN
ops/secrets/forgejo-smtp-passwd.age
Normal file
BIN
ops/secrets/forgejo-smtp-passwd.age
Normal file
Binary file not shown.
|
|
@ -41,6 +41,8 @@ in
|
|||
"gerrit-autosubmit.age" = gerrit01Default;
|
||||
|
||||
"forgejo-oauth-secret.age" = public01Default;
|
||||
"forgejo-smtp-passwd.age" = public01Default;
|
||||
|
||||
"grafana-oauth-secret.age" = public01Default;
|
||||
|
||||
"buildkite-agent-token.age" = build01Default;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue