balderdashy / sails

Realtime MVC Framework for Node.js
https://sailsjs.com
MIT License
22.85k stars 1.95k forks source link

sails-mongo #7125

Open repantoja opened 3 years ago

repantoja commented 3 years ago

Node version: 14.20 Sails version (sails): 1.2.3 ORM hook version (sails-hook-orm): 2.1.11 Sockets hook version (sails-hook-sockets): 2.0.0 DB adapter & version (e.g. sails-mysql@5.55.5):sails-mongo@1.2.0


Unable to configure sails-mongo to use certs when ssl is enable in my project I have two type of certs one for ssl and another that i need to connect to mongo I was hoping to do { ssl:{ ssl: true, cert:mycert, key:mykey } } conifg { adapter: 'sails-mongo', url: 'mongodb://user:pass@server-1.mongodb.net:27017,server-2.mongodb.net:27017,server-3.mongodb.net:27017/test?ssl=true&replicaSet=server-&authSource=admin', ssl: true } thanks

sailsbot commented 3 years ago

@repantoja Thanks for posting! We'll take a look as soon as possible.

In the mean time, there are a few ways you can help speed things along:

Please remember: never post in a public forum if you believe you've found a genuine security vulnerability. Instead, disclose it responsibly.

For help with questions about Sails, click here.

eashaw commented 3 years ago

Hi @repantoja, could you give us a little more information about what you're trying to accomplish? Have you tried passing in your ssl certificate using the supported MongoDB connection options?