fix(gtm): Increase server timeout to 600s and add missing volume mounts to prevent 502 errors

This commit is contained in:
2025-12-31 13:08:09 +00:00
parent f6651bacfc
commit a1f9619d01
2 changed files with 9 additions and 2 deletions

View File

@@ -73,6 +73,11 @@ app.get('*', (req, res) => {
});
app.listen(port, () => {
console.log(`GTM Architect server listening at http://localhost:${port}`);
const server = app.listen(port, () => {
console.log(`GTM Architect server listening at http://localhost:${port} (Timeout: 600s)`);
});
// Prevent 502 Bad Gateway by increasing Node.js server timeouts to match Nginx
server.setTimeout(600000);
server.keepAliveTimeout = 610000;
server.headersTimeout = 620000;