mail_room.yml 1.1 KB
Newer Older
1 2 3
# 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
#
4
:mailboxes:
5 6 7
  <%
    require_relative "lib/gitlab/mail_room" unless defined?(Gitlab::MailRoom)
    config = Gitlab::MailRoom.config
8

9
    if Gitlab::MailRoom.enabled?
10
  %>
11
    -
12 13 14 15 16 17
      :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 %>
18
      :idle_timeout: 60
19

20
      :name: <%= config[:mailbox].to_json %>
21 22 23 24 25

      :delete_after_delivery: true

      :delivery_method: sidekiq
      :delivery_options:
26 27
        :redis_url: <%= config[:redis_url].to_json %>
        :namespace: <%= Gitlab::Redis::SIDEKIQ_NAMESPACE %>
28
        :queue: email_receiver
29 30 31 32
        :worker: EmailReceiverWorker

      :arbitration_method: redis
      :arbitration_options:
33 34 35
        :redis_url: <%= config[:redis_url].to_json %>
        :namespace: <%= Gitlab::Redis::MAILROOM_NAMESPACE %>

36
  <% end %>