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

adds mailer config parameters

This commit is contained in:
Mathias Merscher 2019-03-08 12:29:34 +01:00 committed by Thomas Maurice
parent fb63b41825
commit af20311115
2 changed files with 8 additions and 4 deletions

View file

@ -36,3 +36,7 @@ gitea_require_signin: true
gitea_enable_captcha: true
gitea_force_private: false
gitea_mailer_enabled: false
gitea_mailer_skip_verify: true
gitea_mailer_host: localhost:25
gitea_mailer_from: noreply@your.domain

View file

@ -210,7 +210,7 @@ SKIP_TLS_VERIFY = false
PAGING_NUM = 10
[mailer]
ENABLED = false
ENABLED = {{ gitea_mailer_enabled }}
; Buffer length of channel, keep it as it is if you don't know what it is.
SEND_BUFFER_LEN = 100
; Name displayed in mail title
@ -219,19 +219,19 @@ SUBJECT = %(APP_NAME)s
; Gmail: smtp.gmail.com:587
; QQ: smtp.qq.com:465
; Note, if the port ends with "465", SMTPS will be used. Using STARTTLS on port 587 is recommended per RFC 6409. If the server supports STARTTLS it will always be used.
HOST =
HOST = {{ gitea_mailer_host }}
; Disable HELO operation when hostname are different.
DISABLE_HELO =
; Custom hostname for HELO operation, default is from system.
HELO_HOSTNAME =
; Do not verify the certificate of the server. Only use this for self-signed certificates
SKIP_VERIFY =
SKIP_VERIFY = {{ gitea_mailer_skip_verify }}
; Use client certificate
USE_CERTIFICATE = false
CERT_FILE = {{ gitea_home }}/custom/mailer/cert.pem
KEY_FILE = {{ gitea_home }}/custom/mailer/key.pem
; Mail from address, RFC 5322. This can be just an email address, or the `"Name" <email@example.com>` format
FROM =
FROM = {{ gitea_mailer_from }}
; Mailer user name and password
USER =
PASSWD =