use configuration in config/
This commit is contained in:
parent
735c2c4509
commit
1a0644af11
@ -20,7 +20,7 @@ app.set('views', path.join(__dirname, 'views'));
|
|||||||
app.set('view engine', 'jade');
|
app.set('view engine', 'jade');
|
||||||
|
|
||||||
// load config
|
// load config
|
||||||
_.extend(app.locals, require('./'+app.get('env')+'.json'));
|
_.extend(app.locals, require('./config/'+app.get('env')+'.json'));
|
||||||
|
|
||||||
// nginx
|
// nginx
|
||||||
app.enable('trust proxy');
|
app.enable('trust proxy');
|
||||||
|
5
config/development.json
Normal file
5
config/development.json
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"calibre_path": "./public/calibre",
|
||||||
|
"calibre_db_path": "./public/calibre/metadata.db",
|
||||||
|
"trust proxy": true
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user