mirror of
https://github.com/dbgate/dbgate
synced 2024-11-07 20:26:23 +00:00
fixed SSL with MongoDB #885
This commit is contained in:
parent
5ff1009c22
commit
bc92a63111
@ -73,7 +73,7 @@ const driver = {
|
|||||||
options.tlsCAFile = ssl.sslCaFile;
|
options.tlsCAFile = ssl.sslCaFile;
|
||||||
options.tlsCertificateKeyFile = ssl.sslCertFile || ssl.sslKeyFile;
|
options.tlsCertificateKeyFile = ssl.sslCertFile || ssl.sslKeyFile;
|
||||||
options.tlsCertificateKeyFilePassword = ssl.password;
|
options.tlsCertificateKeyFilePassword = ssl.password;
|
||||||
options.tlsAllowInvalidCertificates = !ssl.rejectUnauthorized;
|
// options.tlsAllowInvalidCertificates = !ssl.rejectUnauthorized;
|
||||||
options.tlsInsecure = !ssl.rejectUnauthorized;
|
options.tlsInsecure = !ssl.rejectUnauthorized;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user