539255 (1) [Avatar] Offline
#1
Hello,

I have set server timeout on my Hapi server, but it doesn't seem to take effect. I am using an old version (9.0.4), and for internal reasons cannot yet upgrade. Here is my code:

const server = new Hapi.Server({
connections: {
router: {
stripTrailingSlash: true
},
routes: {
cors: {
origin: config.corsOrigins.split(','),
isOriginExposed: false
},
security: {
hsts: {
maxAge: 10368000,
includeSubdomains: true
}
},
timeout: {
server: 6000
}
}
}
});

Appreciate your advice.