17 lines
591 B
JavaScript
17 lines
591 B
JavaScript
'use strict';
|
|
|
|
const defaults = {
|
|
user: 'newseri_supreme', // env var: PGUSER
|
|
database: 'newseri', // env var: PGDATABASE
|
|
password: 'oh-look-it-is-raining-news', // env var: PGPASSWORD
|
|
// host: '192.168.1.11', // Server hosting the postgres database
|
|
host: 'hq.bitmill.co', // Server hosting the postgres database
|
|
// port: 5432, // env var: PGPORT
|
|
port: 6543, // env var: PGPORT
|
|
max: 10, // max number of clients in the pool
|
|
idleTimeoutMillis: 30000, // how long a client is allowed to remain idle before being closed
|
|
};
|
|
|
|
module.exports = Object.assign(defaults, {
|
|
}[ENV]);
|