hedgedoc/bin/heroku
David Mehren 86be1243f8
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 <git@herrmehren.de>
2021-05-07 21:43:06 +02:00

22 lines
283 B
Bash
Executable file

#!/bin/bash
set -e
cat << EOF > config.json
{
"production": {
"db": {
"dialect": "postgres",
"protocol": "postgres",
"dialectOptions": {
"ssl": {
"require": true,
"rejectUnauthorized": false
}
}
}
}
}
EOF