Skip to content

Instantly share code, notes, and snippets.

@A
Created June 25, 2014 19:24
Show Gist options
  • Save A/b555dfd19065f87f599c to your computer and use it in GitHub Desktop.
Save A/b555dfd19065f87f599c to your computer and use it in GitHub Desktop.
'use strict';
/**
* Module dependencies.
*/
var config = require('nconf');
var log = require('microlog')(module);
// end of dependencies.
module.exports = function (done) {
config
// Список параметров, которые можно конфигурировать через переменные окружения
.env(['HOST', 'PORT', 'MONGODB'])
.defaults({
HOST: '0.0.0.0',
PORT: 3000,
MONGODB: 'mongodb.example.ru/somedb',
SECRET: 'secret'
});
done();
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment