Simple Meteor Atmosphere Package to allow you to pass in additional connection settings to Mongo that are not supported by the URI Connection String format.
i.e. You can set useful things like ssl
, sslCA
, sslCert
, connectTimeoutMS
, authSource
etc.
- Requires Meteor v1.4+, it uses the Mongo.setConnectionOptions method (thanks @dburles)
meteor add danwild:set-connection-options
- Open your
.meteor/packages
file, and placedanwild:set-connection-options
at the top of the package list (to ensure connection options are set prior to other packages using Mongo). - Simply pass your settings to the env var
MONGO_CONNECTION_SETTINGS
, e.g.
export MONGO_CONNECTION_OPTIONS='{ "foo": "bar" }
If the env var is not set on startup, the package does nothing.