Raise Nginx proxy timeouts so AI daily/weekly review is not cut at 60s.
POST /ai_daily_review was returning 504 while the model was still running; patch BT reverse-proxy read/send timeouts to 360s on deploy. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -31,6 +31,10 @@ echo ">>> pm2 log policy (silence leftover + 3-day retain)"
|
||||
sed -i 's/\r$//' deploy/pm2_log_policy.sh 2>/dev/null || true
|
||||
bash deploy/pm2_log_policy.sh
|
||||
|
||||
echo ">>> nginx AI review proxy timeouts (avoid 504 on /ai_*_review)"
|
||||
sed -i 's/\r$//' deploy/nginx_ai_review_timeouts.sh 2>/dev/null || true
|
||||
bash deploy/nginx_ai_review_timeouts.sh || echo "warn: nginx timeout patch skipped"
|
||||
|
||||
echo ">>> pm2 restart --update-env"
|
||||
# --update-env:避免 PM2 dump 里残留的跨实例环境变量(如 EXCHANGE_DISPLAY_NAME)继续污染
|
||||
pm2 restart crypto_gate crypto_binance crypto_okx manual-trading-hub manual-agent-gate --update-env 2>/dev/null \
|
||||
|
||||
Reference in New Issue
Block a user