This commit is contained in:
Alexander Horner 2019-05-03 22:49:38 +00:00 committed by GitHub
commit 47a455abd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 5 deletions

View File

@ -33,10 +33,8 @@
},
"storage": {
"type": "memcached",
"host": "127.0.0.1",
"port": 11211,
"expire": 2592000
"path": "./data",
"type": "file"
},
"documents": {

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 = JSON.parse(fs.readFileSync('./config.json', 'utf8'));
config.port = process.env.PORT || config.port || 7777;
config.host = process.env.HOST || config.host || 'localhost';