Skip to content

Commit 587df7f

Browse files
authored
require ssl for the database
1 parent 719b92c commit 587df7f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

models/index.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@ const config = require('config');
1414
const sequelize = new Sequelize(config.dbConfig.db_url, {
1515
logging: config.logLevel === 'debug',
1616
operatorsAliases: Sequelize.Op,
17-
native: 'true'
17+
native: 'true',
18+
dialect: 'postgres',
19+
dialectOptions: {
20+
ssl: true,
21+
},
1822

1923
});
2024

0 commit comments

Comments
 (0)