mirror of
https://github.com/strapi/strapi.git
synced 2025-12-24 05:34:33 +00:00
Fixed issue for connection settings and ssl prop
This commit is contained in:
parent
9fa9eb42ed
commit
b64ad9524f
@ -55,7 +55,7 @@ module.exports = function (strapi) {
|
||||
if (!_.isEmpty(authenticationDatabase)) {
|
||||
connectOptions.authSource = authenticationDatabase;
|
||||
}
|
||||
connectOptions.ssl = ssl ? true : false;
|
||||
connectOptions.ssl = (_.isBoolean(ssl) && ssl) || ssl === 'true';
|
||||
|
||||
instance.connect(uri || `mongodb://${host}:${port}/${database}`, connectOptions);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user