From 1a0644af1111ea146a98ba75904636c6a17c1e23 Mon Sep 17 00:00:00 2001 From: Meutel Date: Tue, 24 Jun 2014 19:02:56 +0200 Subject: [PATCH] use configuration in config/ --- bouquins.js | 2 +- config/development.json | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 config/development.json diff --git a/bouquins.js b/bouquins.js index 602dacd..f25d8c8 100644 --- a/bouquins.js +++ b/bouquins.js @@ -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'); diff --git a/config/development.json b/config/development.json new file mode 100644 index 0000000..6123a77 --- /dev/null +++ b/config/development.json @@ -0,0 +1,5 @@ +{ + "calibre_path": "./public/calibre", + "calibre_db_path": "./public/calibre/metadata.db", + "trust proxy": true +}