helmet improvements; rearrange index.html
This commit is contained in:
parent
7a333fe62e
commit
99b19cffc2
2 changed files with 11 additions and 7 deletions
|
|
@ -12,6 +12,7 @@ const cookieParser = require('cookie-parser')
|
|||
const argv = require('minimist')(process.argv.slice(2))
|
||||
const got = require('got')
|
||||
const morgan = require('morgan')
|
||||
const helmet = require('helmet')
|
||||
|
||||
const accounts = require('../lib/admin/accounts')
|
||||
const machines = require('../lib/admin/machines')
|
||||
|
|
@ -55,6 +56,9 @@ function dbNotify () {
|
|||
const skip = (req, res) => req.path === '/api/status/' && res.statusCode === 200
|
||||
|
||||
app.use(morgan('dev', {skip}))
|
||||
app.use(helmet({
|
||||
noCache: true
|
||||
}))
|
||||
app.use(cookieParser())
|
||||
app.use(register)
|
||||
// if (!devMode) app.use(authenticate)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue