You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, if I want to configure node's HTTP server inside AdonisJS, I can override the start method of the Ignitor (this code is from v5 but it applies to v6 as well):
new Ignitor(__dirname).httpServer().start((handler) => {
const server: Server = require('http').createServer(handler)
// Must be greater than AWS ALB idle timeout (60 seconds)
server.keepAliveTimeout = 65000
server.headersTimeout = 66000
return server
})
Would it be a good idea to move settings like keepAliveTimeout to config/app.ts in the UserDefinedServerConfig and ServerConfig?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Currently, if I want to configure node's HTTP server inside AdonisJS, I can override the start method of the Ignitor (this code is from v5 but it applies to v6 as well):
Would it be a good idea to move settings like keepAliveTimeout to config/app.ts in the UserDefinedServerConfig and ServerConfig?
Beta Was this translation helpful? Give feedback.
All reactions