From 1cbf9ff6216be4810a5115e5d00057775d4a2089 Mon Sep 17 00:00:00 2001 From: Zack Pollard Date: Thu, 15 Jun 2023 03:35:54 +0100 Subject: [PATCH] fix: increase request timeout from 5 minutes to 30 minutes (#2766) since node 18 the default request timeout was changed from unlimited to 5 minutes --- server/src/immich/main.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/src/immich/main.ts b/server/src/immich/main.ts index 80bd976ddd..4ebe2db082 100644 --- a/server/src/immich/main.ts +++ b/server/src/immich/main.ts @@ -28,7 +28,8 @@ export async function bootstrap() { useSwagger(app, isDev); await app.get(AppService).init(); - await app.listen(port); + const server = await app.listen(port); + server.setTimeout(1800000); logger.log(`Immich Server is listening on ${port} [v${SERVER_VERSION}] [${envName}] `); }