From d339c620e919553c635b39680504037ac23237cc Mon Sep 17 00:00:00 2001 From: Mathias Merscher Date: Sun, 10 Mar 2019 14:14:57 +0100 Subject: [PATCH] adds template variable for IS_TLS_ENABLED --- defaults/main.yml | 4 +++- templates/gitea.ini.j2 | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index b548f4c..b1fdca2 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -37,8 +37,10 @@ gitea_require_signin: true gitea_enable_captcha: true gitea_force_private: false + gitea_mailer_enabled: false -gitea_mailer_skip_verify: true +gitea_mailer_skip_verify: false +gitea_mailer_tls_enabled: true gitea_mailer_host: localhost:25 gitea_mailer_from: noreply@your.domain diff --git a/templates/gitea.ini.j2 b/templates/gitea.ini.j2 index aa1d434..0952bb0 100644 --- a/templates/gitea.ini.j2 +++ b/templates/gitea.ini.j2 @@ -421,7 +421,7 @@ USE_CERTIFICATE = false CERT_FILE = {{ gitea_home }}/custom/mailer/cert.pem KEY_FILE = {{ gitea_home }}/custom/mailer/key.pem ; Should SMTP connection use TLS -IS_TLS_ENABLED = false +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