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 f891a9211e
commit 013e9a1820
2 changed files with 9 additions and 2 deletions

View File

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

View File

@@ -73,6 +73,11 @@ app.get('*', (req, res) => {
}); });
app.listen(port, () => { const server = app.listen(port, () => {
console.log(`GTM Architect server listening at http://localhost:${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;