opt-cc/server/config/config.js

35 lines
553 B
JavaScript

module.exports = {
port: 8091,
resourceLocation: __dirname + '/../resource',
database: {
uri: 'mongodb://localhost:27017/',
db: 'cc',
mongooseConfig: {
useNewUrlParser: true,
useCreateIndex: true,
useFindAndModify: false,
},
},
prod: {
env: 'production',
},
dev: {
env: 'dev',
},
test: {
db: 'cc-test',
port: 3001,
dredd: {
env: 'dreddTest',
resourceLocation: __dirname + '/../apib/dredd/data/tmp-resource',
},
unit: {
env: 'unitTest',
},
},
};