1
1
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_gitea.git synced 2024-08-16 11:39:50 +02:00

issue #53: define mailer type

This commit is contained in:
Martin Borer 2020-07-21 14:18:08 +02:00
parent c7dca823c9
commit f48402354f
2 changed files with 2 additions and 1 deletions

View file

@ -56,6 +56,7 @@ gitea_mailer_host: localhost:25
gitea_mailer_from: noreply@your.domain gitea_mailer_from: noreply@your.domain
gitea_mailer_user: "" gitea_mailer_user: ""
gitea_mailer_password: "" gitea_mailer_password: ""
gitea_mailer_type: smtp
gitea_fail2ban_enabled: false gitea_fail2ban_enabled: false
gitea_fail2ban_jail_maxretry: 10 gitea_fail2ban_jail_maxretry: 10

View file

@ -145,7 +145,7 @@ PASSWD = `{{ gitea_mailer_password }}`
; Send mails as plain text ; Send mails as plain text
SEND_AS_PLAIN_TEXT = false SEND_AS_PLAIN_TEXT = false
; Set Mailer Type (either SMTP, sendmail or dummy to just send to the log) ; Set Mailer Type (either SMTP, sendmail or dummy to just send to the log)
MAILER_TYPE = smtp MAILER_TYPE = {{ gitea_mailer_type }}
; Specify an alternative sendmail binary ; Specify an alternative sendmail binary
SENDMAIL_PATH = sendmail SENDMAIL_PATH = sendmail
; Specify any extra sendmail arguments ; Specify any extra sendmail arguments