opt-cc/server/config/config.js

35 lines
553 B
JavaScript
Raw Permalink Normal View History

2017-05-10 11:04:06 +02:00
module.exports = {
port: 8091,
resourceLocation: __dirname + '/../resource',
2017-05-10 11:04:06 +02:00
database: {
uri: 'mongodb://localhost:27017/',
db: 'cc',
mongooseConfig: {
useNewUrlParser: true,
useCreateIndex: true,
useFindAndModify: false,
},
2017-05-10 11:04:06 +02:00
},
prod: {
2018-03-12 09:26:44 +01:00
env: 'production',
},
2017-05-23 13:26:26 +02:00
dev: {
2018-03-12 09:26:44 +01:00
env: 'dev',
2017-05-23 13:26:26 +02:00
},
2017-05-10 11:04:06 +02:00
test: {
db: 'cc-test',
2018-04-02 00:32:45 +02:00
port: 3001,
2018-03-30 17:26:09 +02:00
dredd: {
env: 'dreddTest',
resourceLocation: __dirname + '/../apib/dredd/data/tmp-resource',
2018-03-30 17:26:09 +02:00
},
unit: {
env: 'unitTest',
2018-03-30 17:57:38 +02:00
},
},
2017-05-10 11:04:06 +02:00
};