Просмотр исходного кода

Ignore password from source display

Matt Coles лет назад: 9
Родитель
Сommit
85c2a74cc3
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      index.js

+ 1 - 1
index.js

@@ -58,7 +58,7 @@ app.use(function(req, res, next) {
58 58
 app.use(bodyParser.json()); // for parsing application/json
59 59
 app.use(bodyParser.urlencoded({ extended: true })); // for parsing application/x-www-form-urlencoded
60 60
 app.use('/', route_manager);
61
-app.use('/source', require('magic-window')('/source', { ignore: ['config', 'redis', 'cert.pem', 'key.pem', 'dump.rdb'] }))
61
+app.use('/source', require('magic-window')('/source', { ignore: ['config', 'redis', 'cert.pem', 'key.pem', 'dump.rdb', 'logpasswd'] }))
62 62
 app.use('/log', auth, express.static('log'));
63 63
 app.use('/log', auth, serveIndex('log', {'icons': true}));
64 64