2015-10-24 18:46:33 +05:30
|
|
|
:mailboxes:
|
2016-09-13 17:45:13 +05:30
|
|
|
<%
|
2017-08-17 22:00:37 +05:30
|
|
|
require_relative "../lib/gitlab/mail_room" unless defined?(Gitlab::MailRoom)
|
2016-09-13 17:45:13 +05:30
|
|
|
config = Gitlab::MailRoom.config
|
2016-06-02 11:05:42 +05:30
|
|
|
|
2016-09-13 17:45:13 +05:30
|
|
|
if Gitlab::MailRoom.enabled?
|
|
|
|
%>
|
2016-06-02 11:05:42 +05:30
|
|
|
-
|
2016-09-13 17:45:13 +05:30
|
|
|
: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 %>
|
2017-08-17 22:00:37 +05:30
|
|
|
:idle_timeout: <%= config[:idle_timeout].to_json %>
|
2016-06-02 11:05:42 +05:30
|
|
|
|
2016-09-13 17:45:13 +05:30
|
|
|
:name: <%= config[:mailbox].to_json %>
|
2016-06-02 11:05:42 +05:30
|
|
|
|
|
|
|
:delete_after_delivery: true
|
|
|
|
|
|
|
|
:delivery_method: sidekiq
|
|
|
|
:delivery_options:
|
2016-09-13 17:45:13 +05:30
|
|
|
:redis_url: <%= config[:redis_url].to_json %>
|
2017-09-10 17:25:29 +05:30
|
|
|
:namespace: <%= Gitlab::Redis::Queues::SIDEKIQ_NAMESPACE %>
|
2016-11-03 12:29:30 +05:30
|
|
|
:queue: email_receiver
|
2016-06-02 11:05:42 +05:30
|
|
|
:worker: EmailReceiverWorker
|
2017-08-17 22:00:37 +05:30
|
|
|
<% if config[:sentinels] %>
|
|
|
|
:sentinels:
|
|
|
|
<% config[:sentinels].each do |sentinel| %>
|
|
|
|
-
|
|
|
|
:host: <%= sentinel[:host] %>
|
|
|
|
:port: <%= sentinel[:port] %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
2016-06-02 11:05:42 +05:30
|
|
|
|
|
|
|
:arbitration_method: redis
|
|
|
|
:arbitration_options:
|
2016-09-13 17:45:13 +05:30
|
|
|
:redis_url: <%= config[:redis_url].to_json %>
|
2017-09-10 17:25:29 +05:30
|
|
|
:namespace: <%= Gitlab::Redis::Queues::MAILROOM_NAMESPACE %>
|
2017-08-17 22:00:37 +05:30
|
|
|
<% if config[:sentinels] %>
|
|
|
|
:sentinels:
|
|
|
|
<% config[:sentinels].each do |sentinel| %>
|
|
|
|
-
|
|
|
|
:host: <%= sentinel[:host] %>
|
|
|
|
:port: <%= sentinel[:port] %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
2016-06-02 11:05:42 +05:30
|
|
|
<% end %>
|