feat: Allow postgres connections that require ssl mode (#404)

Closes #261
This commit is contained in:
orbatschow
2023-02-27 21:16:51 +05:00
committed by GitHub
parent becf4afe85
commit d627a5660a
3 changed files with 16 additions and 1 deletions
+6 -1
View File
@@ -8,7 +8,12 @@ dotenv.config({
module.exports = {
client: 'pg',
connection: process.env.DATABASE_URL,
connection: {
connectionString: process.env.DATABASE_URL,
ssl: {
rejectUnauthorized: false,
},
},
migrations: {
tableName: 'migration',
directory: path.join(__dirname, 'migrations'),