Open heri16 opened 3 years ago
https://docs.aws.amazon.com/documentdb/latest/developerguide/connect_programmatically.html
This does not work too.
I agree this type of burying of key mongo connection options is not ideal. We need a way for the outermost application to provide mongo connection options. Complex types like a certFileBuf might require a real object to be passed through unless we want to model all the options as environment variables and support file paths, etc.
https://github.com/reactioncommerce/api-core/blob/de2e924ae68247c08f690fbbd3fc9f678f4f45ec/src/util/mongoConnectWithRetry.js#L25
https://scalegrid.io/blog/mongodb-ssl-with-self-signed-certificates-in-node-js/
There is no way now to do the below on reaction.