koa-api/config/index.js

12 lines
339 B
JavaScript

module.exports = {
linkaddr: process.env.HOST_URL || 'localhost:10230',
port: process.env.PORT || 10230,
database: {
host: process.env.DB_HOST || 'localhost',
port: process.env.DB_PORT || 5432,
db: process.env.DB_NAME || 'mystorage',
user: process.env.DB_USER || 'postgres',
pass: process.env.DB_PASS || ''
}
}