2020-07-21 14:36:50 +03:00
|
|
|
import * as Environment from "~/node_common/environment";
|
|
|
|
|
2021-08-09 18:41:31 +03:00
|
|
|
const developmentConfig = {
|
|
|
|
client: "pg",
|
|
|
|
connection: {
|
|
|
|
ssl: true,
|
|
|
|
port: 5432,
|
|
|
|
host: Environment.POSTGRES_HOSTNAME,
|
|
|
|
database: Environment.POSTGRES_DATABASE,
|
|
|
|
user: Environment.POSTGRES_ADMIN_USERNAME,
|
|
|
|
password: Environment.POSTGRES_ADMIN_PASSWORD,
|
2020-07-17 09:05:58 +03:00
|
|
|
},
|
2021-08-09 18:41:31 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
const productionConfig = {
|
|
|
|
client: "pg",
|
|
|
|
connection: {
|
|
|
|
ssl: true,
|
|
|
|
port: 5432,
|
|
|
|
host: Environment.POSTGRES_HOSTNAME,
|
|
|
|
database: Environment.POSTGRES_DATABASE,
|
|
|
|
user: Environment.POSTGRES_ADMIN_USERNAME,
|
|
|
|
password: Environment.POSTGRES_ADMIN_PASSWORD,
|
2020-07-22 21:34:24 +03:00
|
|
|
},
|
2020-07-17 09:05:58 +03:00
|
|
|
};
|
2021-08-09 18:41:31 +03:00
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
development: developmentConfig,
|
|
|
|
staging: productionConfig,
|
|
|
|
production: productionConfig,
|
|
|
|
};
|