mazaid-rest-exec-tasks
Version:
exec tasks REST API
24 lines (21 loc) • 584 B
JavaScript
var joi = require('joi');
var config = {
host: 'localhost',
port: 8084,
db: {
dsl: 'mongodb://localhost:27017/mazaid'
},
nprof: {
snapshotPath: '/data/tmp/mazaid-rest-exec-tasks'
}
};
module.exports = {
host: joi.string().allow(null).default(config.host),
port: joi.number().default(config.port),
db: joi.object().default(config.db).keys({
dsl: joi.string().default(config.db.dsl)
}),
nprof: joi.object().default(config.nprof).keys({
snapshotPath: joi.string().default(config.nprof.snapshotPath)
})
};