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

Lines changed: 5 additions & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy