We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
MONGO_MTLS_VALIDATE
1 parent d7103e9 commit 475e976Copy full SHA for 475e976
infra/config.js
@@ -62,12 +62,14 @@ base.postgres = {
62
63
base.mongo = {
64
uri: process.env.MONGO_URI || `mongodb://${APPLICATION_DOMAIN}/${name}`,
65
+ /** @type {import('mongodb').MongoClientOptions} */
66
options: {},
67
};
68
69
if (process.env.MTLS_CERT_PATH) {
70
base.mongo.options.tls = true;
71
base.mongo.options.tlsCertificateKeyFile = process.env.MTLS_CERT_PATH;
72
+ base.mongo.options.tlsInsecure = process.env.MONGO_MTLS_VALIDATE === 'false';
73
}
74
75
base.logger = {
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "@codefresh-io/service-base",
3
- "version": "5.0.3",
+ "version": "5.0.4",
4
"main": "index.js",
5
"description": "",
6
"bin": {
0 commit comments