summaryrefslogtreecommitdiff
path: root/config/mail_room.yml
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-10-13 13:07:59 +0200
committerDouwe Maan <douwe@gitlab.com>2015-10-13 13:10:49 +0200
commit712d17684b2b9a8664cdff685c44fa59ea6fabbc (patch)
tree34cef23c0e546db66fc3aed820e5129547a8b751 /config/mail_room.yml
parentc2c8f8acc41747280356e157e749c1cafbd807e3 (diff)
downloadgitlab-ce-712d17684b2b9a8664cdff685c44fa59ea6fabbc.tar.gz
Make Reply by email easier to configure
Diffstat (limited to 'config/mail_room.yml')
-rw-r--r--config/mail_room.yml39
1 files changed, 39 insertions, 0 deletions
diff --git a/config/mail_room.yml b/config/mail_room.yml
new file mode 100644
index 00000000000..42f6f74c465
--- /dev/null
+++ b/config/mail_room.yml
@@ -0,0 +1,39 @@
+:mailboxes:
+<%
+require_relative 'config/environment.rb'
+
+if Gitlab::IncomingEmail.enabled?
+ config = Gitlab::IncomingEmail.config
+
+ redis_config_file = "config/resque.yml"
+ redis_url =
+ if File.exists?(redis_config_file)
+ YAML.load_file(redis_config_file)[Rails.env]
+ else
+ "redis://localhost:6379"
+ end
+ %>
+ -
+ :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 %>
+
+ :name: <%= config.mailbox.to_json %>
+
+ :delete_after_delivery: true
+
+ :delivery_method: sidekiq
+ :delivery_options:
+ :redis_url: <%= redis_url.to_json %>
+ :namespace: resque:gitlab
+ :queue: incoming_email
+ :worker: EmailReceiverWorker
+
+ :arbitration_method: redis
+ :arbitration_options:
+ :redis_url: <%= redis_url.to_json %>
+ :namespace: mail_room:gitlab
+<% end %>