title: Node.js setting up environment specific configs to be used with everyauth
body: <p>I am using node.js + express.js + everyauth.js. I have moved all my everyauth logic into a module file</p>
  <pre><code>var login = require('./lib/everyauthLogin');
  </code></pre>
  <p>inside this I load my oAuth config file with the key/secret combinations:</p>
  <pre><code>var conf = require('./conf');
  .....
  twitter: {
      consumerKey: 'ABC', 
      consumerSecret: '123'
  }
  </code></pre>
  <p>These codes are different for different environments - development / staging / production as the callbacks are to different urls.</p>
  <p><strong>Question:</strong> How do I set these in the environmental config to filter through all modules or can I pass the path directly into the module?</p>
  <p><strong>Set in env:</strong></p>
  <pre><code>app.configure('development', function(){
    app.set('configPath', './confLocal');
  });
  
  app.configure('production', function(){
    app.set('configPath', './confProduction');
  });
  
  var conf = require(app.get('configPath'));
  </code></pre>
  <p><strong>Pass in</strong></p>
  <pre><code>app.configure('production', function(){
    var login = require('./lib/everyauthLogin', {configPath: './confProduction'});
  });
  </code></pre>
  <p>? hope that makes sense</p>