From 8c0f4cadab0c93e63f71a8795566ca7429b93644 Mon Sep 17 00:00:00 2001 From: Marius Alwan Meyer <22202402+Sporqist@users.noreply.github.com> Date: Sat, 11 Mar 2023 19:56:56 +0100 Subject: [PATCH] =?UTF-8?q?mehr=20parameter=20f=C3=BCr=20den=20mailer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/environment.env.j2 | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/templates/environment.env.j2 b/templates/environment.env.j2 index 682f3c0..04d4885 100644 --- a/templates/environment.env.j2 +++ b/templates/environment.env.j2 @@ -44,6 +44,24 @@ GITEA__mailer__ENABLED={{ gitea_vars.mailer.enabled }} {% if 'from' in gitea_vars['mailer'] %} GITEA__mailer__FROM=git@{{ system.hostname }}.{{ system.domain }} {% endif %} +{% if 'protocol' in gitea_vars['mailer'] %} +GITEA__mailer__PROTOCOL={{ gitea_vars.mailer.protocol }} +{% endif %} +{% if 'smtp_addr' in gitea_vars['mailer'] %} +GITEA__mailer__SMTP_ADDR={{ gitea_vars.mailer.smtp_addr }} +{% endif %} +{% if 'smtp_port' in gitea_vars['mailer'] %} +GITEA__mailer__SMTP_PORT={{ gitea_vars.mailer.smtp_port }} +{% endif %} +{% if 'enable_helo' in gitea_vars['mailer'] %} +GITEA__mailer__ENABLE_HELO={{ gitea_vars.mailer.enable_helo }} +{% endif %} +{% if 'user' in gitea_vars['mailer'] %} +GITEA__mailer__USER={{ gitea_vars.mailer.user }} +{% endif %} +{% if 'passwd' in gitea_vars['mailer'] %} +GITEA__mailer__PASSWD={{ gitea_vars.mailer.passwd }} +{% endif %} {% endif %} {# /mailer #} {% if 'repository' in gitea_vars %}