Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion frameworks/JavaScript/express/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,6 @@ if (cluster.isPrimary) {
app.get('/plaintext', (req, res) =>
res.header('Content-Type', 'text/plain').send('Hello, World!'));

app.listen(8080);
const server = app.listen(8080);
server.keepAliveTimeout = 0;
}
2 changes: 1 addition & 1 deletion frameworks/JavaScript/express/express-chakra.dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:chakracore
FROM node:20.16-slim

COPY ./ ./

Expand Down
2 changes: 1 addition & 1 deletion frameworks/JavaScript/express/express-mongodb.dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:20.12.2-slim
FROM node:20.16-slim

COPY ./ ./

Expand Down
2 changes: 1 addition & 1 deletion frameworks/JavaScript/express/express-mysql.dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:20.12.2-slim
FROM node:20.16-slim

COPY ./ ./

Expand Down
2 changes: 1 addition & 1 deletion frameworks/JavaScript/express/express-postgres.dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:20.12.2-slim
FROM node:20.16-slim

COPY ./ ./

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:21.1.0-slim
FROM node:20.16-slim

COPY ./ ./

Expand Down
2 changes: 1 addition & 1 deletion frameworks/JavaScript/express/express.dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:20.12.2-slim
FROM node:20.16-slim

COPY ./ ./

Expand Down
2 changes: 1 addition & 1 deletion frameworks/JavaScript/fastify/create-server.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const fastify = require("fastify")();
const fastify = require("fastify")({ logger: false, keepAliveTimeout: 0 });
const handlers = require("./handlers");

fastify.setErrorHandler((error, request, reply) => {
Expand Down
1 change: 1 addition & 0 deletions frameworks/JavaScript/hapi/create-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const options = {
};

const server = new Hapi.server(options);
server.listener.keepAliveTimeout = 0;

const provision = async () => {

Expand Down
2 changes: 1 addition & 1 deletion frameworks/JavaScript/hapi/hapi-mysql.dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:18.12.1-slim
FROM node:20.16-slim

COPY ./ ./

Expand Down
2 changes: 1 addition & 1 deletion frameworks/JavaScript/hapi/hapi-postgres.dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:18.12.1-slim
FROM node:20.16-slim

COPY ./ ./

Expand Down
2 changes: 1 addition & 1 deletion frameworks/JavaScript/hapi/hapi.dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:18.12.1-slim
FROM node:20.16-slim

COPY ./ ./

Expand Down
2 changes: 1 addition & 1 deletion frameworks/TypeScript/nest/nestjs-fastify-mongo.dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:20.12.2-slim
FROM node:20.16-slim

COPY ./ ./

Expand Down
2 changes: 1 addition & 1 deletion frameworks/TypeScript/nest/nestjs-fastify-mysql.dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:20.12.2-slim
FROM node:20.16-slim

COPY ./ ./

Expand Down
2 changes: 1 addition & 1 deletion frameworks/TypeScript/nest/nestjs-fastify.dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:20.12.2-slim
FROM node:20.16-slim

COPY ./ ./

Expand Down
2 changes: 1 addition & 1 deletion frameworks/TypeScript/nest/nestjs-mongo.dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:20.12.2-slim
FROM node:20.16-slim

COPY ./ ./

Expand Down
2 changes: 1 addition & 1 deletion frameworks/TypeScript/nest/nestjs-mysql.dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:20.12.2-slim
FROM node:20.16-slim

COPY ./ ./

Expand Down
2 changes: 1 addition & 1 deletion frameworks/TypeScript/nest/nestjs.dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:20.12.2-slim
FROM node:20.16-slim

COPY ./ ./

Expand Down
3 changes: 3 additions & 0 deletions frameworks/TypeScript/nest/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ async function bootstrapExpress() {
app = await NestFactory.create<NestExpressApplication>(SqlModule, {
logger: false,
});
app.getHttpServer().keepAliveTimeout = 0;
}

app.setBaseViewsDir(join(__dirname, '..', 'views'));
Expand All @@ -40,12 +41,14 @@ async function bootstrapFastify() {
new FastifyAdapter(),
{ logger: false },
);
app.getHttpServer().keepAliveTimeout = 0;
} else {
app = await NestFactory.create<NestFastifyApplication>(
SqlModule,
new FastifyAdapter(),
{ logger: false },
);
app.getHttpServer().keepAliveTimeout = 0;
}

app.setViewEngine({
Expand Down
Loading