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)
|
2022-01-06 01:10:35 -05:00
|
|
|
Gitlab::MailRoom.enabled_configs.each do |_key, config|
|
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 %>
|
2019-12-16 07:07:43 -05:00
|
|
|
:logger:
|
|
|
|
:log_path: <%= config[:log_path].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
|
2020-05-12 20:07:50 -04:00
|
|
|
:expunge_deleted: <%= config[:expunge_deleted].to_json %>
|
2016-02-26 21:48:13 -05:00
|
|
|
|
2021-04-07 17:09:01 -04:00
|
|
|
<% if config[:inbox_method] %>
|
|
|
|
:inbox_method: <%= config[:inbox_method] %>
|
|
|
|
<% end %>
|
|
|
|
<% if config[:inbox_options].is_a?(Hash) %>
|
|
|
|
<%= config.slice(:inbox_options).to_yaml(indentation: 8).gsub(/^---\n/, '') %>
|
|
|
|
<% end %>
|
|
|
|
|
2016-02-26 21:48:13 -05:00
|
|
|
:delivery_method: sidekiq
|
|
|
|
:delivery_options:
|
2016-05-30 17:13:42 -04:00
|
|
|
:redis_url: <%= config[:redis_url].to_json %>
|
2021-10-08 14:13:02 -04:00
|
|
|
:redis_db: <%= config[:redis_db] %>
|
2017-07-10 23:35:47 -04:00
|
|
|
:namespace: <%= Gitlab::Redis::Queues::SIDEKIQ_NAMESPACE %>
|
2020-01-31 16:08:52 -05:00
|
|
|
:queue: <%= config[:queue] %>
|
|
|
|
:worker: <%= config[:worker] %>
|
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 %>
|