From 8a9b0347bbb9e0253782a7e08c785a7733d8dfa0 Mon Sep 17 00:00:00 2001 From: Jason Rasmussen Date: Tue, 8 Nov 2022 10:24:49 -0500 Subject: [PATCH] fix(server): increase json body payload limit (#941) --- server/apps/immich/src/main.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/apps/immich/src/main.ts b/server/apps/immich/src/main.ts index 11d9411994..c744c0422a 100644 --- a/server/apps/immich/src/main.ts +++ b/server/apps/immich/src/main.ts @@ -8,12 +8,14 @@ import path from 'path'; import { AppModule } from './app.module'; import { serverVersion } from './constants/server_version.constant'; import { RedisIoAdapter } from './middlewares/redis-io.adapter.middleware'; +import { json } from 'body-parser'; async function bootstrap() { const app = await NestFactory.create(AppModule); app.set('trust proxy'); app.use(cookieParser()); + app.use(json({ limit: '10mb' })); if (process.env.NODE_ENV === 'development') { app.enableCors(); }