Skip to content

Commit

Permalink
fix: added more timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
yurenju committed Dec 15, 2023
1 parent 988854c commit 7495e23
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/server/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ async function bootstrap() {
const { httpAdapter } = app.get(HttpAdapterHost);
app.useGlobalFilters(new AllExceptionsFilter(httpAdapter));
app.set('trust proxy', true);
const server = httpAdapter.getHttpServer();
server.keepAliveTimeout = 61 * 1000;
server.headersTimeout = 65 * 1000;

const globalPrefix = 'api';
app.enableCors();
Expand Down

0 comments on commit 7495e23

Please sign in to comment.