remove config loading on poll
This commit is contained in:
parent
653b55dc1a
commit
adc1a4f353
5 changed files with 22 additions and 30 deletions
13
lib/app.js
13
lib/app.js
|
|
@ -49,17 +49,6 @@ module.exports = function (options) {
|
|||
|
||||
app.use(express.bodyParser())
|
||||
|
||||
var reloadConfigMiddleware = function (req, res, next) {
|
||||
lamassuConfig.load(function (err, config) {
|
||||
if (err) {
|
||||
logger.error('Error while reloading config')
|
||||
return next(err)
|
||||
}
|
||||
plugins.configure(config)
|
||||
next()
|
||||
})
|
||||
}
|
||||
|
||||
var authMiddleware
|
||||
|
||||
if (options.https) {
|
||||
|
|
@ -110,7 +99,7 @@ module.exports = function (options) {
|
|||
lamassuConfig: lamassuConfig,
|
||||
plugins: plugins,
|
||||
authMiddleware: authMiddleware,
|
||||
reloadConfigMiddleware: reloadConfigMiddleware,
|
||||
// reloadConfigMiddleware: reloadConfigMiddleware,
|
||||
mock: options.mock
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue