mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-01-20 22:52:46 -05:00
Fixed issue with not being able to disable the web interface
This commit is contained in:
parent
bc91a05dd2
commit
c49b0699c2
1 changed files with 3 additions and 1 deletions
|
@ -90,7 +90,9 @@ module.exports = function(config_hash) {
|
||||||
app.use(require('./index-api')(config, auth, storage))
|
app.use(require('./index-api')(config, auth, storage))
|
||||||
|
|
||||||
if (config.web && config.web.enable === false) {
|
if (config.web && config.web.enable === false) {
|
||||||
|
app.get('/', function(req, res, next) {
|
||||||
next( Error[404]('web interface is disabled in the config file') )
|
next( Error[404]('web interface is disabled in the config file') )
|
||||||
|
})
|
||||||
} else {
|
} else {
|
||||||
app.use(require('./index-web')(config, auth, storage))
|
app.use(require('./index-web')(config, auth, storage))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue