This commit is contained in:
Your Name 2022-08-15 10:02:32 -06:00
parent 52c1822a8d
commit 0e24146511

View File

@ -15,9 +15,7 @@ let config = JSON.parse(fs.readFileSync((process.env.PICLUSTER_CONFIG ? process.
process.env.NODE_TLS_REJECT_UNAUTHORIZED = config.ssl_self_signed ? '0' : '1'; process.env.NODE_TLS_REJECT_UNAUTHORIZED = config.ssl_self_signed ? '0' : '1';
const app = express(); const app = express();
app.use(express.urlencoded({ app.use(express.urlencoded({ extended: true }));
limit: '20mb'
}));
app.use(express.json({ app.use(express.json({
limit: '20mb' limit: '20mb'
})); }));
@ -1372,4 +1370,4 @@ if (config.ssl && config.ssl_cert && config.ssl_key) {
webconsole.listen(web_port, () => { webconsole.listen(web_port, () => {
console.log('Listening on port %d', web_port); console.log('Listening on port %d', web_port);
}); });
} }