var fs    = require('fs');
var nconf = require('nconf');
var path = require('path');

nconf.argv()
     .env()
     .file({file: path.join(
       path.dirname(__dirname), '/settings.json')
     })

nconf.defaults({
  "database": {
    // WARNING: for s3 this must *not* have a leading '/' and *should* have a
    // trailing slash
    "path": process.env.DB_PATH || "db",
    // s3 or fs
    "backend": "s3"
  }
  , "express": {
    "secret": "a random session secret"
    , "port": process.env.PORT || 5000
  }
  , "twitter": {
    "key": process.env.TWITTER_KEY,
    "secret": process.env.TWITTER_SECRET,
    "url": "http://hypernotes.herokuapp.com/account/auth/twitter/callback"
  }
  , "s3": {
    "key": process.env.S3_KEY,
    "secret": process.env.S3_SECRET,
    "bucket": process.env.S3_BUCKET || "timemapper-data.okfnlabs.org"
  }
  // config for testing mode
  , "test": {
    "testing": "false"
    // test user to use
    , "user": "tester"
  }
});

module.exports = nconf;


@@ -616,40 +616,71 @@
 l%22: 
-%22http://hypernotes.h
+process.env.TWITTER_CALLBACK %7C%7C %22http://timemapp
 er
+.
 ok
-uapp.com
+fnlabs.org
 /acc

change to timemapper.okfnlabs.org for twitter callback and allow this to be configurable.