From fe4db0bb070c46414c77d99bbca52c718634dca3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A8r=20Kessels?= Date: Mon, 10 Jun 2019 21:10:39 +0200 Subject: [PATCH] Add username and password for smpt servers. Defaulting to blank --- defaults/main.yml | 2 ++ templates/gitea.ini.j2 | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index 79698e4..1792613 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -47,6 +47,8 @@ gitea_mailer_skip_verify: false gitea_mailer_tls_enabled: true gitea_mailer_host: localhost:25 gitea_mailer_from: noreply@your.domain +gitea_mailer_user: "" +gitea_mailer_password: "" gitea_fail2ban_enabled: false gitea_fail2ban_jail_maxretry: 10 diff --git a/templates/gitea.ini.j2 b/templates/gitea.ini.j2 index 0105230..c284f7f 100644 --- a/templates/gitea.ini.j2 +++ b/templates/gitea.ini.j2 @@ -126,9 +126,9 @@ IS_TLS_ENABLED = {{ gitea_mailer_tls_enabled }} ; Mail from address, RFC 5322. This can be just an email address, or the `"Name" ` format FROM = {{ gitea_mailer_from }} ; Mailer user name and password -USER = +USER = {{ gitea_mailer_user }} ; Use PASSWD = `your password` for quoting if you use special characters in the password. -PASSWD = +PASSWD = `{{ gitea_mailer_password }}` ; Send mails as plain text SEND_AS_PLAIN_TEXT = false ; Set Mailer Type (either SMTP, sendmail or dummy to just send to the log)