From 1350a98aac169ac7fa1f78d41c4191df80fb10ef Mon Sep 17 00:00:00 2001 From: John Date: Sun, 4 Oct 2026 19:17:35 +0200 Subject: [PATCH] gitea: set mail as variable --- group_vars/all/main.yml | 2 ++ roles/gitea/templates/gitea.conf.j2 | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 group_vars/all/main.yml diff --git a/group_vars/all/main.yml b/group_vars/all/main.yml new file mode 100644 index 0000000..d21e8ad --- /dev/null +++ b/group_vars/all/main.yml @@ -0,0 +1,2 @@ +--- +mail_host: mail.johnnynator.de diff --git a/roles/gitea/templates/gitea.conf.j2 b/roles/gitea/templates/gitea.conf.j2 index a2727f7..72a27ab 100644 --- a/roles/gitea/templates/gitea.conf.j2 +++ b/roles/gitea/templates/gitea.conf.j2 @@ -36,14 +36,14 @@ LEVEL = Info [mailer] ENABLED = true PROTOCOL = smtps -SMTP_ADDR = mail.johnnynator.de +SMTP_ADDR = {{ mail_host }} SMTP_PORT = 465 FROM = "Gitea <{{gitea_mail }}>" USER = {{ gitea_mail }} PASSWD = {{ gitea_mail_password }} [email.incoming] ENABLED = true -HOST = mail.johnnynator.de +HOST = {{ mail_host }} PORT = 993 USERNAME = {{ gitea_mail }} PASSWORD = {{ gitea_mail_password }}