Added RethinkDB storage option & fixed config to use proper JSON

This commit is contained in:
PassTheMayo 2017-12-09 18:34:00 -06:00
parent cfef588283
commit ba5c6b8d16
5 changed files with 99 additions and 49 deletions

View file

@ -11,7 +11,7 @@ var connect_rate_limit = require('connect-ratelimit');
var DocumentHandler = require('./lib/document_handler');
// Load the configuration and set some defaults
var config = JSON.parse(fs.readFileSync('./config.js', 'utf8'));
var config = require('./config.json');
config.port = process.env.PORT || config.port || 7777;
config.host = process.env.HOST || config.host || 'localhost';