use configuration in config/

This commit is contained in:
Meutel 2014-06-24 19:02:56 +02:00
parent 735c2c4509
commit 1a0644af11
2 changed files with 6 additions and 1 deletions

View File

@ -20,7 +20,7 @@ app.set('views', path.join(__dirname, 'views'));
app.set('view engine', 'jade');
// load config
_.extend(app.locals, require('./'+app.get('env')+'.json'));
_.extend(app.locals, require('./config/'+app.get('env')+'.json'));
// nginx
app.enable('trust proxy');

5
config/development.json Normal file
View File

@ -0,0 +1,5 @@
{
"calibre_path": "./public/calibre",
"calibre_db_path": "./public/calibre/metadata.db",
"trust proxy": true
}