mirror of
https://github.com/docusealco/docuseal
synced 2026-11-08 15:42:32 -05:00
add SMTP_SSL_VERIFY env
This commit is contained in:
1 parent
4f5acbec9d
commit
33e226861e
1 file changed
+1
@@ -85,6 +85,7 @@ Rails.application.configure do
|
||||
domain: ENV.fetch('SMTP_DOMAIN', nil),
|
||||
user_name: ENV.fetch('SMTP_USERNAME', nil),
|
||||
password: ENV.fetch('SMTP_PASSWORD', nil),
|
||||
openssl_verify_mode: ENV['SMTP_SSL_VERIFY'] == 'false' ? OpenSSL::SSL::VERIFY_NONE : OpenSSL::SSL::VERIFY_PEER,
|
||||
authentication: ENV.fetch('SMTP_PASSWORD', nil).present? ? ENV.fetch('SMTP_AUTHENTICATION', 'plain') : nil,
|
||||
enable_starttls: ENV['SMTP_ENABLE_STARTTLS'] != 'false'
|
||||
}.compact
|
||||
|
||||
Reference in new issue
Block a user