Merge branch 'master' into 'master'

add ssl option

fix the problem not set "ssl: true" in /var/opt/gitlab/gitlab-rails/etc/smtp_settings.rb when set "gitlab_rails['smtp_ssl'] = true" in /etc/gitlab/gitlab.rb.

the issue in https://gitlab.com/gitlab-org/gitlab-ce/issues/3498

See merge request !730
This commit is contained in:
Marin Jankovski 2016-04-13 15:12:14 +00:00
commit 4a377fc265
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ if Rails.env.production?
ActionMailer::Base.smtp_settings = {
authentication: <%= @smtp_authentication.to_s.to_sym.inspect %>,
<% %w{ address port user_name password domain enable_starttls_auto tls openssl_verify_mode ca_path ca_file }.each do |key| %>
<% %w{ address port user_name password domain enable_starttls_auto tls ssl openssl_verify_mode ca_path ca_file }.each do |key| %>
<% value = node['gitlab'][container]["smtp_#{key}"] %>
<%= "#{key}: #{value.inspect}," unless value.nil? %>
<% end %>