Protect logging backend.
This commit is contained in:
parent
09b01f5ccf
commit
921052dff5
5 changed files with 32 additions and 1 deletions
server
|
@ -30,7 +30,9 @@ angular.module('ffffng').factory('Logger', function (app) {
|
|||
if (config.server.logging.logRequests) {
|
||||
app.use(scribe.express.logger());
|
||||
}
|
||||
app.use('/internal/logs', scribe.webPanel());
|
||||
if (config.server.internal.active) {
|
||||
app.use('/internal/logs', scribe.webPanel());
|
||||
}
|
||||
|
||||
return process.console;
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue