From 86be1243f8ae24ac6c0586a694b3788548e9019e Mon Sep 17 00:00:00 2001 From: David Mehren Date: Fri, 7 May 2021 21:42:49 +0200 Subject: [PATCH] Ignore Postgres SSL errors on Heroku The connection to Heroku's Postgres instances must use SSL, but not check the certificate. This adds the necessary configuration to the Heroku setup script. Fixes #1245 Signed-off-by: David Mehren --- bin/heroku | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/bin/heroku b/bin/heroku index 908ea4eb4..2bb49fbe9 100755 --- a/bin/heroku +++ b/bin/heroku @@ -6,6 +6,16 @@ cat << EOF > config.json { "production": { + "db": { + "dialect": "postgres", + "protocol": "postgres", + "dialectOptions": { + "ssl": { + "require": true, + "rejectUnauthorized": false + } + } + } } }