fix(gtm): Increase server timeout to 600s and add missing volume mounts to prevent 502 errors
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user