]> cat aescling's git repositories - mastodon.git/commitdiff
Add SMTP_TLS variable for configuring TLS when server uses non-standard port (#4227)
authorEugen Rochko <eugen@zeonfederated.com>
Sun, 16 Jul 2017 21:48:35 +0000 (23:48 +0200)
committerGitHub <noreply@github.com>
Sun, 16 Jul 2017 21:48:35 +0000 (23:48 +0200)
config/environments/production.rb

index d9c9da684fd7b765abe1fe0be8fab507ce065225..f1351e37822e936454e0324f0879f47ccf8f448e 100644 (file)
@@ -85,6 +85,7 @@ Rails.application.configure do
     :ca_file              => ENV['SMTP_CA_FILE'].presence,
     :openssl_verify_mode  => ENV['SMTP_OPENSSL_VERIFY_MODE'],
     :enable_starttls_auto => ENV['SMTP_ENABLE_STARTTLS_AUTO'] || true,
+    :tls                  => ENV['SMTP_TLS'].presence,
   }
 
   config.action_mailer.delivery_method = ENV.fetch('SMTP_DELIVERY_METHOD', 'smtp').to_sym