Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'config/initializers/smtp_settings.rb.sample')
-rw-r--r--config/initializers/smtp_settings.rb.sample27
1 files changed, 26 insertions, 1 deletions
diff --git a/config/initializers/smtp_settings.rb.sample b/config/initializers/smtp_settings.rb.sample
index bd37080b1c8..4a50c29143d 100644
--- a/config/initializers/smtp_settings.rb.sample
+++ b/config/initializers/smtp_settings.rb.sample
@@ -5,7 +5,7 @@
#
# For full list of options and their values see http://api.rubyonrails.org/classes/ActionMailer/Base.html
#
-# If you change this file in a Merge Request, please also create a Merge Request on https://gitlab.com/gitlab-org/omnibus-gitlab/merge_requests
+# If you change this file in a merge request, please also create a merge request on https://gitlab.com/gitlab-org/omnibus-gitlab/merge_requests
if Rails.env.production?
Rails.application.config.action_mailer.delivery_method = :smtp
@@ -22,3 +22,28 @@ if Rails.env.production?
openssl_verify_mode: 'peer' # See ActionMailer documentation for other possible options
}
end
+
+# To use an SMTP connection pool, uncomment the following section:
+#
+# require 'mail/smtp_pool'
+#
+# ActionMailer::Base.add_delivery_method :smtp_pool, Mail::SMTPPool
+#
+# if Rails.env.production?
+# Rails.application.config.action_mailer.delivery_method = :smtp_pool
+#
+# ActionMailer::Base.delivery_method = :smtp_pool
+# ActionMailer::Base.smtp_pool_settings = {
+# pool: Mail::SMTPPool.create_pool(
+# pool_size: Gitlab::Runtime.max_threads,
+# address: "email.server.com",
+# port: 465,
+# user_name: "smtp",
+# password: "123456",
+# domain: "gitlab.company.com",
+# authentication: :login,
+# enable_starttls_auto: true,
+# openssl_verify_mode: 'peer' # See ActionMailer documentation for other possible options
+# )
+# }
+# end