debian-mirror-gitlab/config/initializers/smtp_settings.rb.sample

23 lines
714 B
Text
Raw Normal View History

2015-04-26 12:48:37 +05:30
# To enable smtp email delivery for your GitLab instance do the following:
2014-09-02 18:07:02 +05:30
# 1. Rename this file to smtp_settings.rb
# 2. Edit settings inside this file
# 3. Restart GitLab instance
#
2015-04-26 12:48:37 +05:30
# For full list of options and their values see http://api.rubyonrails.org/classes/ActionMailer/Base.html
#
2014-09-02 18:07:02 +05:30
if Rails.env.production?
Gitlab::Application.config.action_mailer.delivery_method = :smtp
ActionMailer::Base.smtp_settings = {
address: "email.server.com",
port: 456,
user_name: "smtp",
password: "123456",
domain: "gitlab.company.com",
authentication: :login,
2015-04-26 12:48:37 +05:30
enable_starttls_auto: true,
openssl_verify_mode: 'peer' # See ActionMailer documentation for other possible options
2014-09-02 18:07:02 +05:30
}
end