mirror of
https://github.com/sameersbn/docker-gitlab.git
synced 2026-02-01 14:34:07 +00:00
20 lines
614 B
Ruby
20 lines
614 B
Ruby
# To enable smtp email delivery for your GitLab instance do next:
|
|
# 1. Rename this file to smtp_settings.rb
|
|
# 2. Edit settings inside this file
|
|
# 3. Restart GitLab instance
|
|
#
|
|
if Rails.env.production?
|
|
Gitlab::Application.config.action_mailer.delivery_method = :smtp
|
|
|
|
ActionMailer::Base.smtp_settings = {
|
|
address: "{{SMTP_HOST}}",
|
|
port: {{SMTP_PORT}},
|
|
user_name: "{{SMTP_USER}}",
|
|
password: "{{SMTP_PASS}}",
|
|
domain: "{{SMTP_DOMAIN}}",
|
|
authentication: "{{SMTP_AUTHENTICATION}}",
|
|
openssl_verify_mode: "{{SMTP_OPENSSL_VERIFY_MODE}}",
|
|
enable_starttls_auto: {{SMTP_STARTTLS}}
|
|
}
|
|
end
|