aboutsummaryrefslogtreecommitdiff
path: root/interface/config/db.config.js
blob: 11604200cb1fddcc61fecd3573de14e2f6bc19e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
require('dotenv').config();
module.exports = {
    // The name of the database
    database: process.env.DATABASE,
    // The username used to connect to the database
    username: process.env.USER_NAME,
    // The password used to connect to the database
    password: process.env.PASSWORD,
    // The dialect of the database you are connecting to
    dialect: 'postgres',
    // The host of the database
    host: process.env.HOST,
    // The port of the database
    port: 5432,
    // Setup pool of connections to the database
    pool: {
        max: 5,
        min: 0,
        acquire: 30000,
        idle: 10000
    }
};