Guest User

Untitled

a guest
Apr 19th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.03 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: dev_server
  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. # Note that all options listed below are Ruby driver client options (the mongo gem).
  15. # Please refer to the driver documentation of the version of the mongo gem you are using
  16. # for the most up-to-date list of options.
  17. #
  18. # Change the default write concern. (default = { w: 1 })
  19. # write:
  20. # w: 1
  21.  
  22. # Change the default read preference. Valid options for mode are: :secondary,
  23. # :secondary_preferred, :primary, :primary_preferred, :nearest
  24. # (default: primary)
  25. # read:
  26. # mode: :secondary_preferred
  27. # tag_sets:
  28. # - use: web
  29.  
  30. # The name of the user for authentication.
  31. # user: 'user'
  32.  
  33. # The password of the user for authentication.
  34. # password: 'password'
  35.  
  36. # The user's database roles.
  37. # roles:
  38. # - 'dbOwner'
  39.  
  40. # Change the default authentication mechanism. Valid options are: :scram,
  41. # :mongodb_cr, :mongodb_x509, and :plain. Note that all authentication
  42. # mechanisms require username and password, with the exception of :mongodb_x509.
  43. # Default on mongoDB 3.0 is :scram, default on 2.4 and 2.6 is :plain.
  44. # auth_mech: :scram
  45.  
  46. # The database or source to authenticate the user against.
  47. # (default: the database specified above or admin)
  48. # auth_source: admin
  49.  
  50. # Force a the driver cluster to behave in a certain manner instead of auto-
  51. # discovering. Can be one of: :direct, :replica_set, :sharded. Set to :direct
  52. # when connecting to hidden members of a replica set.
  53. # connect: :direct
  54.  
  55. # Changes the default time in seconds the server monitors refresh their status
  56. # via ismaster commands. (default: 10)
  57. # heartbeat_frequency: 10
  58.  
  59. # The time in seconds for selecting servers for a near read preference. (default: 0.015)
  60. # local_threshold: 0.015
  61.  
  62. # The timeout in seconds for selecting a server for an operation. (default: 30)
  63. # server_selection_timeout: 30
  64.  
  65. # The maximum number of connections in the connection pool. (default: 5)
  66. # max_pool_size: 5
  67.  
  68. # The minimum number of connections in the connection pool. (default: 1)
  69. # min_pool_size: 1
  70.  
  71. # The time to wait, in seconds, in the connection pool for a connection
  72. # to be checked in before timing out. (default: 5)
  73. # wait_queue_timeout: 5
  74.  
  75. # The time to wait to establish a connection before timing out, in seconds.
  76. # (default: 5)
  77. # connect_timeout: 5
  78.  
  79. # The timeout to wait to execute operations on a socket before raising an error.
  80. # (default: 5)
  81. # socket_timeout: 5
  82.  
  83. # The name of the replica set to connect to. Servers provided as seeds that do
  84. # not belong to this replica set will be ignored.
  85. # replica_set: name
  86.  
  87. # Whether to connect to the servers via ssl. (default: false)
  88. # ssl: true
  89.  
  90. # The certificate file used to identify the connection against MongoDB.
  91. # ssl_cert: /path/to/my.cert
  92.  
  93. # The private keyfile used to identify the connection against MongoDB.
  94. # Note that even if the key is stored in the same file as the certificate,
  95. # both need to be explicitly specified.
  96. # ssl_key: /path/to/my.key
  97.  
  98. # A passphrase for the private key.
  99. # ssl_key_pass_phrase: password
  100.  
  101. # Whether or not to do peer certification validation. (default: true)
  102. # ssl_verify: true
  103.  
  104. # The file containing a set of concatenated certification authority certifications
  105. # used to validate certs passed from the other end of the connection.
  106. # ssl_ca_cert: /path/to/ca.cert
  107.  
  108.  
  109. # Configure Mongoid specific options. (optional)
  110. options:
  111. # Includes the root model name in json serialization. (default: false)
  112. # include_root_in_json: false
  113.  
  114. # Include the _type field in serialization. (default: false)
  115. # include_type_for_serialization: false
  116.  
  117. # Preload all models in development, needed when models use
  118. # inheritance. (default: false)
  119. # preload_models: false
  120.  
  121. # Raise an error when performing a #find and the document is not found.
  122. # (default: true)
  123. # raise_not_found_error: true
  124.  
  125. # Raise an error when defining a scope with the same name as an
  126. # existing method. (default: false)
  127. # scope_overwrite_exception: false
  128.  
  129. # Raise an error when defining a field with the same name as an
  130. # existing method. (default: false)
  131. # duplicate_fields_exception: false
  132.  
  133. # Use Active Support's time zone in conversions. (default: true)
  134. # use_activesupport_time_zone: true
  135.  
  136. # Ensure all times are UTC in the app side. (default: false)
  137. # use_utc: false
  138.  
  139. # Set the Mongoid and Ruby driver log levels when not in a Rails
  140. # environment. The Mongoid logger will be set to the Rails logger
  141. # otherwise.(default: :info)
  142. # log_level: :info
  143.  
  144. # Control whether `belongs_to` association is required. By default
  145. # `belongs_to` will trigger a validation error if the association
  146. # is not present. (default: true)
  147. # belongs_to_required_by_default: true
  148.  
  149. # Application name that is printed to the mongodb logs upon establishing a
  150. # connection in server versions >= 3.4. Note that the name cannot exceed 128 bytes.
  151. # app_name: MyApplicationName
  152.  
  153. # Use background indexes by default if `background` option not specified. (default: false)
  154. # background_indexing: false
  155. test:
  156. clients:
  157. default:
  158. database: dev_server_test
  159. hosts:
  160. - localhost:27017
  161. options:
  162. read:
  163. mode: :primary
  164. max_pool_size: 1
Add Comment
Please, Sign In to add comment