development:
  clients:
    default:
      # MONGODB_URI includes draft_content_store_development or content_store_development
      # depending on whether we're running content store in draft mode or not.
      uri: <%= ENV['MONGODB_URI'] || 'mongodb://localhost/content_store_development' %>
      options:
        write:
          w: 1

test:
  clients:
    default:
      uri: mongodb://localhost/content_store_test
      options:
        write:
          w: 1
        # In the test environment we lower the retries and retry interval to
        # low amounts for fast failures.
        max_retries: 1
        retry_interval: 0

production:
  clients:
    default:
      uri: <%= ENV['MONGODB_URI'] %>
      options:
        write:
          w: majority

development:
  clients:
    default:
      # MONGODB_URI includes draft_content_store_development or content_store_development
      # depending on whether we're running content store in draft mode or not.
      uri: <%= ENV['MONGODB_URI'] || 'mongodb://localhost/content_store_development' %>
      options:
        write:
          w: 1

test:
  clients:
    default:
      uri: mongodb://localhost/content_store_test
      options:
        write:
          w: 1
        # In the test environment we lower the retries and retry interval to
        # low amounts for fast failures.
        max_retries: 1
        retry_interval: 0

production:
  clients:
    default:
      uri: <%= ENV['MONGODB_URI'] %>
      options:
        ssl: <%= ENV['MONGO_SSL'] || 'false' %>
        ssl_verify: <%= ENV['MONGO_SSL_VERIFY'] || 'true' %>
        server_selection_timeout: 5
        write:
          w: majority

Add Mongo SSL config. Need to add the option for connecting to Mongo via SSL in production in order to test this app in the PaaS environment where Mongo is provided externally and can only be accessed over a TLS connection.
Add Mongo SSL config.
Need to add the option for connecting to Mongo via SSL in production in order to test this app in the PaaS environment where Mongo is provided externally and can only be accessed over a TLS connection.
