File size: 385 Bytes
3cdf53d
 
 
 
 
 
 
 
 
13dd365
3cdf53d
 
1
2
3
4
5
6
7
8
9
10
11
12
13
export const configuration = () => {
  return {
    // db config
    'db.host': process.env.DB_HOST,
    'db.port': process.env.DB_PORT,
    'db.user_name': process.env.DB_USER,
    'db.password': process.env.DB_PASSWORD,
    'db.name': process.env.DB_NAME,
    'db.slow_limit': Number(process.env.DB_SLOW_LIMIT) || 500, // ms
    'db.ssl_enabled': process.env.DB_SSL_ENABLED,
  };
};