I was wondering, is there a way to increase the backend app timeout within .env ?
For very large tables, where sql query takes over few minutes, the app stops waiting for the results and closes the connection.
Within nginx proxy logs I’m seeing “upstream prematurely closed connection while reading response header from upstream”, upstream being the node server.
Where does this timeout comes from (between you backend and your database/between your nginx and your backend?)? Both sequelize & express have customizable timeout
For express, timeout should be configurable directly on the server instance
const server = app.listen();
server.setTimeout(500000);
For sequelize, dialectOptions should contains a nested requestTimeout property