Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow custom mongo connection settings #36

Open
abondoa opened this issue Aug 3, 2017 · 1 comment
Open

Allow custom mongo connection settings #36

abondoa opened this issue Aug 3, 2017 · 1 comment

Comments

@abondoa
Copy link

abondoa commented Aug 3, 2017

Some connection settings cannot (as far as I know) be set as part of the connection string. This include ssl-specific settings, such as sslCA, sslCert, sslKey, sslPass. Full list available at: http://mongodb.github.io/node-mongodb-native/2.2/reference/connecting/connection-settings/

It would be great if it was possible to specify this connection settings object to be used in a migration. My colleague has made a fork of your project and made changes to allow this: https://github.com/razvanc92/mongration/tree/connection-options

If you see this as relevant in general, we will make a pull request back to your project.

@wmartins
Copy link
Member

wmartins commented Oct 3, 2018

@abondoa I know it's a little bit late, but it's interesting. I think a PR for that would be welcome.

However, I'm planning on review mongration code a little bit this week, maybe update it to use newer client and etc, and maybe I can rewrite to use a config object instead of a config connection string. So, maybe this review/refactor/rewrite would bring those configuration to the table.

But, I think you can open a PR to that while I'm not doing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants