Commit 0e78bd840449a26fb3c906a4dd9454fd3b94c5fc

Authored by Ricardo Langner
1 parent 581975d8

- Allows smtp parameter tls. This adds the solution for the gitlabhq issue #5636

files/gitlab-cookbooks/gitlab/templates/default/smtp_settings.rb.erb
@@ -7,7 +7,7 @@ if Rails.env.production? @@ -7,7 +7,7 @@ if Rails.env.production?
7 7
8 ActionMailer::Base.smtp_settings = { 8 ActionMailer::Base.smtp_settings = {
9 authentication: <%= @smtp_authentication.to_s.to_sym.inspect %>, 9 authentication: <%= @smtp_authentication.to_s.to_sym.inspect %>,
10 -<% %w{ address port user_name password domain enable_starttls_auto }.each do |key| %> 10 +<% %w{ address port user_name password domain enable_starttls_auto tls }.each do |key| %>
11 <% if value = node['gitlab']['gitlab-rails']["smtp_#{key}"] %> 11 <% if value = node['gitlab']['gitlab-rails']["smtp_#{key}"] %>
12 <%= "#{key}: #{value.inspect}," %> 12 <%= "#{key}: #{value.inspect}," %>
13 <% end %> 13 <% end %>