From 0d068f00e6071f599a70a3b76aad86b53973f08d Mon Sep 17 00:00:00 2001 From: Muhammad Abdulhadi Date: Mon, 8 Nov 2021 15:34:30 +0200 Subject: [PATCH] Edit ssl connection --- server/database/config/connection.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/database/config/connection.js b/server/database/config/connection.js index f1ed1f7..d4e619b 100644 --- a/server/database/config/connection.js +++ b/server/database/config/connection.js @@ -23,6 +23,8 @@ switch (NODE_ENV) { const options = { connectionString: dbUrl, - ssl: false, + ssl: { + rejectUnauthorized: false, + }, }; module.exports = new Pool(options);