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

@@ -97,6 +97,8 @@ services:
# Sideloading: Python Logic
- ./gtm_architect_orchestrator.py:/app/gtm_architect_orchestrator.py
- ./market_db_manager.py:/app/market_db_manager.py
- ./helpers.py:/app/helpers.py
- ./config.py:/app/config.py
# Sideloading: Server Logic
- ./gtm-architect/server.cjs:/app/server.cjs
# Database Persistence

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;