mirror of
https://github.com/turt2live/matrix-dimension.git
synced 2024-10-01 01:05:53 -04:00
Up the default request limit size
For larger transactions
This commit is contained in:
parent
6b21ac4443
commit
2eaa78c1c7
@ -55,7 +55,7 @@ export default class Webserver {
|
|||||||
|
|
||||||
private configure() {
|
private configure() {
|
||||||
this.app.use(express.static(path.join(__dirname, "..", "..", "web")));
|
this.app.use(express.static(path.join(__dirname, "..", "..", "web")));
|
||||||
this.app.use(bodyParser.json());
|
this.app.use(bodyParser.json({limit: '512mb'}));
|
||||||
this.app.use((req, _res, next) => {
|
this.app.use((req, _res, next) => {
|
||||||
const parsedUrl = URL.parse(req.url, true);
|
const parsedUrl = URL.parse(req.url, true);
|
||||||
if (parsedUrl.query && parsedUrl.query["scalar_token"]) {
|
if (parsedUrl.query && parsedUrl.query["scalar_token"]) {
|
||||||
|
Loading…
Reference in New Issue
Block a user