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 +}