lib/rails/generators/mongoid/config/templates/mongoid.yml in mongoid-7.0.13 vs lib/rails/generators/mongoid/config/templates/mongoid.yml in mongoid-7.1.0.rc0
- old
+ new
@@ -1,11 +1,15 @@
development:
# Configure available database clients. (required)
clients:
# Defines the default client. (required)
default:
- # Defines the name of the default database that Mongoid can connect to.
+ # Mongoid can connect to a URI accepted by the driver:
+ # uri: mongodb://user:password@mongodb.domain.com:27017/<%= database_name || app_name %>_development
+
+ # Otherwise define the parameters separately.
+ # This defines the name of the default database that Mongoid can connect to.
# (required).
database: <%= database_name || app_name %>_development
# Provides the hosts the default client can connect to. Must be an array
# of host:port pairs. (required)
hosts:
@@ -71,12 +75,12 @@
# The time to wait, in seconds, in the connection pool for a connection
# to be checked in before timing out. (default: 5)
# wait_queue_timeout: 5
# The time to wait to establish a connection before timing out, in seconds.
- # (default: 5)
- # connect_timeout: 5
+ # (default: 10)
+ # connect_timeout: 10
# The timeout to wait to execute operations on a socket before raising an error.
# (default: 5)
# socket_timeout: 5
@@ -96,16 +100,18 @@
# ssl_key: /path/to/my.key
# A passphrase for the private key.
# ssl_key_pass_phrase: password
- # Whether or not to do peer certification validation. (default: true)
+ # Whether to do peer certification validation. (default: true)
# ssl_verify: true
- # The file containing a set of concatenated certification authority certifications
+ # The file containing concatenated certificate authority certificates
# used to validate certs passed from the other end of the connection.
# ssl_ca_cert: /path/to/ca.cert
-
+
+ # Whether to truncate long log lines. (default: true)
+ # truncate_logs: true
# Configure Mongoid specific options. (optional)
options:
# Includes the root model name in json serialization. (default: false)
# include_root_in_json: false