2015-10-13 07:07:59 -04:00
|
|
|
:mailboxes:
|
2016-05-30 17:13:42 -04:00
|
|
|
<%
|
2017-02-20 11:37:50 -05:00
|
|
|
require_relative "../lib/gitlab/mail_room" unless defined?(Gitlab::MailRoom)
|
2016-05-30 17:13:42 -04:00
|
|
|
config = Gitlab::MailRoom.config
|
2016-02-26 21:48:13 -05:00
|
|
|
|
2016-07-07 21:33:37 -04:00
|
|
|
if Gitlab::MailRoom.enabled?
|
2016-05-30 17:13:42 -04:00
|
|
|
%>
|
2016-02-26 21:48:13 -05:00
|
|
|
-
|
2016-05-30 17:13:42 -04:00
|
|
|
:host: <%= config[:host].to_json %>
|
|
|
|
:port: <%= config[:port].to_json %>
|
|
|
|
:ssl: <%= config[:ssl].to_json %>
|
|
|
|
:start_tls: <%= config[:start_tls].to_json %>
|
|
|
|
:email: <%= config[:user].to_json %>
|
|
|
|
:password: <%= config[:password].to_json %>
|
2016-11-11 09:40:19 -05:00
|
|
|
:idle_timeout: <%= config[:idle_timeout].to_json %>
|
2016-02-26 21:48:13 -05:00
|
|
|
|
2016-05-30 17:13:42 -04:00
|
|
|
:name: <%= config[:mailbox].to_json %>
|
2016-02-26 21:48:13 -05:00
|
|
|
|
|
|
|
:delete_after_delivery: true
|
|
|
|
|
|
|
|
:delivery_method: sidekiq
|
|
|
|
:delivery_options:
|
2016-05-30 17:13:42 -04:00
|
|
|
:redis_url: <%= config[:redis_url].to_json %>
|
2017-07-10 23:35:47 -04:00
|
|
|
:namespace: <%= Gitlab::Redis::Queues::SIDEKIQ_NAMESPACE %>
|
2016-10-24 00:17:23 -04:00
|
|
|
:queue: email_receiver
|
2016-02-26 21:48:13 -05:00
|
|
|
:worker: EmailReceiverWorker
|
2016-10-25 09:50:41 -04:00
|
|
|
<% if config[:sentinels] %>
|
|
|
|
:sentinels:
|
|
|
|
<% config[:sentinels].each do |sentinel| %>
|
|
|
|
-
|
|
|
|
:host: <%= sentinel[:host] %>
|
|
|
|
:port: <%= sentinel[:port] %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
2016-02-26 21:48:13 -05:00
|
|
|
|
|
|
|
:arbitration_method: redis
|
|
|
|
:arbitration_options:
|
2016-05-30 17:13:42 -04:00
|
|
|
:redis_url: <%= config[:redis_url].to_json %>
|
2017-07-10 23:35:47 -04:00
|
|
|
:namespace: <%= Gitlab::Redis::Queues::MAILROOM_NAMESPACE %>
|
2016-10-25 09:50:41 -04:00
|
|
|
<% if config[:sentinels] %>
|
|
|
|
:sentinels:
|
|
|
|
<% config[:sentinels].each do |sentinel| %>
|
|
|
|
-
|
|
|
|
:host: <%= sentinel[:host] %>
|
|
|
|
:port: <%= sentinel[:port] %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
2016-02-26 21:48:13 -05:00
|
|
|
<% end %>
|