added timeout
This commit is contained in:
@@ -89,6 +89,9 @@ import { Costo } from './costo/entities/costo.entity';
|
||||
|
||||
extra: {
|
||||
connectionLimit: 10,
|
||||
waitForConnections: true,
|
||||
idleTimeout: 60000,
|
||||
connectTimeout: 10000,
|
||||
},
|
||||
}),
|
||||
}),
|
||||
|
||||
+5
-4
@@ -10,10 +10,11 @@ async function bootstrap() {
|
||||
app.useGlobalPipes(new ValidationPipe());
|
||||
|
||||
app.enableCors(
|
||||
// {
|
||||
// origin: configService.get<string>('Front_URL'),
|
||||
// }
|
||||
);
|
||||
// {
|
||||
// origin: configService.get<string>('Front_URL'),
|
||||
// }
|
||||
);
|
||||
app.enableShutdownHooks();
|
||||
await app.listen(process.env.PORT ?? 3000);
|
||||
}
|
||||
bootstrap();
|
||||
|
||||
Reference in New Issue
Block a user