raised json limit

master
cheetah 2 years ago
parent e84733a79c
commit fe6b96074e

@ -48,11 +48,11 @@ const express = require('express')
const { MessageManager } = require('./types') const { MessageManager } = require('./types')
const app = express(), appConfig = express() const app = express(), appConfig = express()
const appServer = require('http').createServer(app) const appServer = require('http').createServer(app)
app.use(express.json()) app.use(express.json({ limit: '1mb' }))
app.use(express.static('html_main')) app.use(express.static('html_main'))
app.use(express.static(__dirname + '/node_modules/@mdi/font')) app.use(express.static(__dirname + '/node_modules/@mdi/font'))
appConfig.use(express.json()) appConfig.use(express.json({ limit: '1mb' }))
appConfig.use(express.static('html_config')) appConfig.use(express.static('html_config'))
appConfig.use(express.static(__dirname + '/node_modules/@mdi/font')) appConfig.use(express.static(__dirname + '/node_modules/@mdi/font'))

Loading…
Cancel
Save