working s3 integration, commented out load credentials from json

This commit is contained in:
Abhinav Adduri 2017-06-06 10:24:58 -07:00 committed by Danny Coates
parent f377aa4551
commit af4edfef16
No known key found for this signature in database
GPG key ID: 4C442633C62E00CB
6 changed files with 116 additions and 86 deletions

View file

@ -1,16 +1,22 @@
const convict = require('convict');
let api_key = 'INSERT API KEY HERE';
let conf = convict({
aws_credentials: {
region: 'us-west-2',
bucketName: 'testpilot-p2p'
}
})
aws_credentials: {
region: 'us-west-2',
bucketName: 'testpilot-p2p'
},
bitly_credentials: {
api_key: api_key
},
env: {
format: ['production', 'development'],
default: 'development',
env: 'NODE_ENV'
}
});
// var env = conf.get('env');
// conf.loadFile('./config/' + env + '.json');
// Perform validation
conf.validate({allowed: 'strict'});
module.exports = conf;
// Perform validation
conf.validate({ allowed: 'strict' });
module.exports = conf.getProperties();