Skip to content

Meteor set additional mongo connection settings (e.g. sslCert) via $MONGO_CONNECTION_OPTIONS

License

Notifications You must be signed in to change notification settings

danwild/set-connection-options

Repository files navigation

danwild:set-connection-options

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.

Notes

Use

  1. meteor add danwild:set-connection-options
  2. Open your .meteor/packages file, and place danwild:set-connection-options at the top of the package list (to ensure connection options are set prior to other packages using Mongo).
  3. 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.

Releases

No releases published

Packages

No packages published