mirror of
https://gitlab.com/timvisee/send.git
synced 2024-11-10 21:22:35 +01:00
23 lines
436 B
JavaScript
23 lines
436 B
JavaScript
const convict = require('convict');
|
|
let api_key = 'INSERT API KEY HERE';
|
|
|
|
let conf = convict({
|
|
aws_credentials: {
|
|
region: 'us-west-2',
|
|
bucketName: 'testpilot-p2p'
|
|
},
|
|
bitly_credentials: {
|
|
api_key: api_key
|
|
},
|
|
env: {
|
|
format: ['production', 'development'],
|
|
default: 'development',
|
|
env: 'NODE_ENV'
|
|
}
|
|
});
|
|
|
|
// Perform validation
|
|
conf.validate({ allowed: 'strict' });
|
|
|
|
module.exports = conf.getProperties();
|