var nconf = require('nconf');

nconf
  .env()
  .file({ file: './gateway.json' });

nconf.defaults({
  'RIPPLE_REST_API': 'http://localhost:5990',
  'DATABASE_URL': 'postgres://username:password@localhost/ripple_gateway'
});

module.exports = nconf;

var nconf = require('nconf');

nconf
  .env()
  .file({ file: './config/config.json' });

nconf.defaults({
  'RIPPLE_REST_API': 'http://localhost:5990',
  'DATABASE_URL': 'postgres://username:password@localhost/ripple_gateway'
});

module.exports = nconf;

Move config file from gateway to config/config
[FEATURE] Move config file from gateway to config/config
