You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Steps to reproduce or a small repository showing the problem:
It isn't possible to configure a connection to a MongoDB server that uses SSL by using the environment variables. I tried, without success, to use the variable "TYPEORM_DRIVER_EXTRA" by defining it in the ".env" file like this: "TYPEORM_DRIVER_EXTRA={ "ssl": true, "sslValidate": false }". But after checking the MongoDB driver code (https://github.com/typeorm/typeorm/blob/master/src/driver/mongodb/MongoDriver.ts) I noticed it doesn't use the extra property of the options object for anything so it's normal that it doesn't work.
If I configure the connection options with SSL directly in the code then it works fine.
The text was updated successfully, but these errors were encountered:
I'm using postgres, but I believe my pr should fix this? #3409 at least for setting it to true. ah guess I'm wrong, didnt know about the DRIVER_EXTRA variable. good luck solving this
Issue type:
[ ] question
[X] bug report
[ ] feature request
[ ] documentation issue
Database system/driver:
[ ]
cordova
[X]
mongodb
[ ]
mssql
[ ]
mysql
/mariadb
[ ]
oracle
[ ]
postgres
[ ]
sqlite
[ ]
sqljs
[ ]
websql
TypeORM version:
[ ]
latest
[ ]
@next
[X]
0.1.11
Steps to reproduce or a small repository showing the problem:
It isn't possible to configure a connection to a MongoDB server that uses SSL by using the environment variables. I tried, without success, to use the variable "TYPEORM_DRIVER_EXTRA" by defining it in the ".env" file like this: "TYPEORM_DRIVER_EXTRA={ "ssl": true, "sslValidate": false }". But after checking the MongoDB driver code (https://github.com/typeorm/typeorm/blob/master/src/driver/mongodb/MongoDriver.ts) I noticed it doesn't use the extra property of the options object for anything so it's normal that it doesn't work.
If I configure the connection options with SSL directly in the code then it works fine.
The text was updated successfully, but these errors were encountered: