fix(basic.gblib): Allow MERGE keyword in storage #380. @othonlima
This commit is contained in:
parent
fddb2289d3
commit
bd3fd5d6af
2 changed files with 4 additions and 3 deletions
|
@ -56,7 +56,8 @@ export function createKoaHttpServer(
|
||||||
|
|
||||||
const app = new Koa();
|
const app = new Koa();
|
||||||
app.use(cors({ origin: '*' }));
|
app.use(cors({ origin: '*' }));
|
||||||
app.use(koaBody.koaBody({ multipart: true }));
|
app.use(koaBody.koaBody({jsonLimit:'1024mb',textLimit:'1024mb', formLimit:'1024mb',
|
||||||
|
multipart: true }));
|
||||||
app.use(middleware);
|
app.use(middleware);
|
||||||
const server = app.listen(port);
|
const server = app.listen(port);
|
||||||
const SERVER_TIMEOUT = 60 * 60 * 24 * 1000; // Equals to client RPC set.
|
const SERVER_TIMEOUT = 60 * 60 * 24 * 1000; // Equals to client RPC set.
|
||||||
|
|
|
@ -102,8 +102,8 @@ export class GBServer {
|
||||||
GBServer.globals.indexSemaphore = new Mutex();
|
GBServer.globals.indexSemaphore = new Mutex();
|
||||||
|
|
||||||
server.use(bodyParser.json());
|
server.use(bodyParser.json());
|
||||||
server.use(bodyParser.json({ limit: '100mb' }));
|
server.use(bodyParser.json({ limit: '1mb' }));
|
||||||
server.use(bodyParser.urlencoded({ limit: '100mb', extended: true }));
|
server.use(bodyParser.urlencoded({ limit: '1mb', extended: true }));
|
||||||
|
|
||||||
process.on('SIGTERM', () => {
|
process.on('SIGTERM', () => {
|
||||||
GBLog.info('SIGTERM signal received.');
|
GBLog.info('SIGTERM signal received.');
|
||||||
|
|
Loading…
Add table
Reference in a new issue