mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-27 12:08:02 -05:00
86be1243f8
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>
22 lines
283 B
Bash
Executable file
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
|