Skip to content

High performance self-hosted photo and video management solution.

fix(server): increase json body payload limit (#941)

Jason Rasmussen8a9b0347bbb9
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<NestExpressApplication>(AppModule);
app.set('trust proxy');
app.use(cookieParser());
+ app.use(json({ limit: '10mb' }));
if (process.env.NODE_ENV === 'development') {
app.enableCors();
}