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(); }