Advertisement
Guest User

Untitled

a guest
May 25th, 2016
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.70 KB | None | 0 0
  1. development:
  2. # Configure available database clients. (required)
  3. clients:
  4. # Defines the default client. (required)
  5. default:
  6. # Defines the name of the default database that Mongoid can connect to.
  7. # (required).
  8. database: treeni_development
  9. # Provides the hosts the default client can connect to. Must be an array
  10. # of host:port pairs. (required)
  11. hosts:
  12. - localhost:27017
  13. options:
  14. # Change the default write concern. (default = { w: 1 })
  15. # write:
  16. # w: 1
  17.  
  18. # Change the default read preference. Valid options for mode are: :secondary,
  19. # :secondary_preferred, :primary, :primary_preferred, :nearest
  20. # (default: primary)
  21. # read:
  22. # mode: :secondary_preferred
  23. # tag_sets:
  24. # - use: web
  25.  
  26. # The name of the user for authentication.
  27. # user: 'user'
  28.  
  29. # The password of the user for authentication.
  30. # password: 'password'
  31.  
  32. # The user's database roles.
  33. # roles:
  34. # - 'dbOwner'
  35.  
  36. # Change the default authentication mechanism. Valid options are: :scram,
  37. # :mongodb_cr, :mongodb_x509, and :plain. (default on 3.0 is :scram, default
  38. # on 2.4 and 2.6 is :plain)
  39. # auth_mech: :scram
  40.  
  41. # The database or source to authenticate the user against. (default: admin)
  42. # auth_source: admin
  43.  
  44. # Force a the driver cluster to behave in a certain manner instead of auto-
  45. # discovering. Can be one of: :direct, :replica_set, :sharded. Set to :direct
  46. # when connecting to hidden members of a replica set.
  47. # connect: :direct
  48.  
  49. # Changes the default time in seconds the server monitors refresh their status
  50. # via ismaster commands. (default: 10)
  51. # heartbeat_frequency: 10
  52.  
  53. # The time in seconds for selecting servers for a near read preference. (default: 5)
  54. # local_threshold: 5
  55.  
  56. # The timeout in seconds for selecting a server for an operation. (default: 30)
  57. # server_selection_timeout: 30
  58.  
  59. # The maximum number of connections in the connection pool. (default: 5)
  60. # max_pool_size: 5
  61.  
  62. # The minimum number of connections in the connection pool. (default: 1)
  63. # min_pool_size: 1
  64.  
  65. # The time to wait, in seconds, in the connection pool for a connection
  66. # to be checked in before timing out. (default: 5)
  67. # wait_queue_timeout: 5
  68.  
  69. # The time to wait to establish a connection before timing out, in seconds.
  70. # (default: 5)
  71. # connect_timeout: 5
  72.  
  73. # The timeout to wait to execute operations on a socket before raising an error.
  74. # (default: 5)
  75. # socket_timeout: 5
  76.  
  77. # The name of the replica set to connect to. Servers provided as seeds that do
  78. # not belong to this replica set will be ignored.
  79. # replica_set: name
  80.  
  81. # Whether to connect to the servers via ssl. (default: false)
  82. # ssl: true
  83.  
  84. # The certificate file used to identify the connection against MongoDB.
  85. # ssl_cert: /path/to/my.cert
  86.  
  87. # The private keyfile used to identify the connection against MongoDB.
  88. # Note that even if the key is stored in the same file as the certificate,
  89. # both need to be explicitly specified.
  90. # ssl_key: /path/to/my.key
  91.  
  92. # A passphrase for the private key.
  93. # ssl_key_pass_phrase: password
  94.  
  95. # Whether or not to do peer certification validation. (default: false)
  96. # ssl_verify: true
  97.  
  98. # The file containing a set of concatenated certification authority certifications
  99. # used to validate certs passed from the other end of the connection.
  100. # ssl_ca_cert: /path/to/ca.cert
  101.  
  102.  
  103. # Configure Mongoid specific options. (optional)
  104. options:
  105. # Includes the root model name in json serialization. (default: false)
  106. # include_root_in_json: false
  107.  
  108. # Include the _type field in serialization. (default: false)
  109. # include_type_for_serialization: false
  110.  
  111. # Preload all models in development, needed when models use
  112. # inheritance. (default: false)
  113. # preload_models: false
  114.  
  115. # Raise an error when performing a #find and the document is not found.
  116. # (default: true)
  117. # raise_not_found_error: true
  118.  
  119. # Raise an error when defining a scope with the same name as an
  120. # existing method. (default: false)
  121. # scope_overwrite_exception: false
  122.  
  123. # Use Active Support's time zone in conversions. (default: true)
  124. # use_activesupport_time_zone: true
  125.  
  126. # Ensure all times are UTC in the app side. (default: false)
  127. # use_utc: false
  128. production:
  129. clients:
  130. default:
  131. database: treeni_development
  132. hosts:
  133. - localhost:27017
  134. options:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement