From 06163003af6a3deb88b0bb65ee48a7775ef82c47 Mon Sep 17 00:00:00 2001 From: Schaeferjo Date: Fri, 26 Mar 2021 16:19:38 +0100 Subject: [PATCH] fix: ignore unkown heroku certificates https://nodejs.org/api/tls.html#tls_tls_createserver_options_secureconnectionlistener https://node-postgres.com/features/ssl https://github.com/brianc/node-postgres/issues/2009 https://github.com/strapi/strapi/issues/5696 --- backend/config/env/production/database.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/config/env/production/database.js b/backend/config/env/production/database.js index 64cc2ad..64a1451 100644 --- a/backend/config/env/production/database.js +++ b/backend/config/env/production/database.js @@ -10,6 +10,9 @@ module.exports = ({ env }) => ({ database: env('DATABASE_NAME', 'strapi'), username: env('DATABASE_USERNAME', ''), password: env('DATABASE_PASSWORD', ''), + ssl: { + rejectUnauthorized: false, // For self-signed certificates + }, }, options: { ssl: true,