Additional MongoDB Driver Options
It's possible to provide extra connection settings to the Mongo driver that are not covered in the URI connection string. Set the the MONGO_OPTIONS
environment variable to a JSON string.
For example:
You might want to do this, for example, if you're backing Rocket.Chat with a TLS-secured Mongo replica set and need to pass certificates/PEM files, etc. to connect to it.
If you see the following error during startup:
You can try increasing server selection time by adding the following property to MONGO_OPTIONS
to change the default value of 10000
to 20000
:
Last updated