chore: cleanup, node14 and new admin default
This commit is contained in:
parent
c7c18633d7
commit
89bb9a8f25
244 changed files with 3957 additions and 39487 deletions
|
|
@ -3,6 +3,7 @@
|
|||
const compression = require('compression')
|
||||
const morgan = require('morgan')
|
||||
const helmet = require('helmet')
|
||||
const nocache = require('nocache')
|
||||
const bodyParser = require('body-parser')
|
||||
const _ = require('lodash/fp')
|
||||
const express = require('express')
|
||||
|
|
@ -454,7 +455,8 @@ const app = express()
|
|||
const localApp = express()
|
||||
|
||||
app.use(compression({ threshold: 500 }))
|
||||
app.use(helmet({ noCache: true }))
|
||||
app.use(helmet())
|
||||
app.use(nocache())
|
||||
app.use(bodyParser.json({ limit: '2mb' }))
|
||||
app.use(morgan(':method :url :status :response-time ms - :res[content-length]', { stream: logger.stream }))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue