working s3 integration, commented out load credentials from json
This commit is contained in:
parent
f377aa4551
commit
af4edfef16
6 changed files with 116 additions and 86 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue