2017-06-05 22:35:36 +00:00
|
|
|
const convict = require('convict');
|
2017-06-06 17:24:58 +00:00
|
|
|
let api_key = 'INSERT API KEY HERE';
|
2017-06-05 22:35:36 +00:00
|
|
|
|
|
|
|
let conf = convict({
|
2017-06-06 17:24:58 +00:00
|
|
|
aws_credentials: {
|
|
|
|
region: 'us-west-2',
|
|
|
|
bucketName: 'testpilot-p2p'
|
|
|
|
},
|
|
|
|
bitly_credentials: {
|
|
|
|
api_key: api_key
|
|
|
|
},
|
|
|
|
env: {
|
|
|
|
format: ['production', 'development'],
|
|
|
|
default: 'development',
|
|
|
|
env: 'NODE_ENV'
|
|
|
|
}
|
|
|
|
});
|
2017-06-05 22:35:36 +00:00
|
|
|
|
2017-06-06 17:24:58 +00:00
|
|
|
// Perform validation
|
|
|
|
conf.validate({ allowed: 'strict' });
|
|
|
|
|
|
|
|
module.exports = conf.getProperties();
|