defaults: &defaults
  host: localhost
  port: 5672
  vhost: /
  user: publishing_api
  pass: publishing_api
  recover_from_connection_close: true

development:
  <<: *defaults
  exchange: published_documents

test:
  <<: *defaults
  exchange: published_documents_test

defaults: &defaults
  host: localhost
  port: 5672
  vhost: /
  user: publishing_api
  pass: publishing_api
  recover_from_connection_close: true

development:
  <<: *defaults
  exchange: published_documents

test:
  <<: *defaults
  exchange: published_documents_test

production:
  hosts:
    - rabbitmq-1.backend
    - rabbitmq-2.backend
    - rabbitmq-3.backend
  user: publishing_api
  pass: <%= ENV['RABBITMQ_PASSWORD'] %>
  port: 5672
  vhost: /
  exchange: published_documents
  recover_from_connection_close: true

Add production config for RabbitMQ
Add production config for RabbitMQ

It's better to keep this in the app rather than copying it into
the app at deploy time.
