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)