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:
dekun
2026-07-17 13:12:32 +08:00
parent 5bd3f3250a
commit af7fb44650
4 changed files with 108 additions and 4 deletions
+4
View File
@@ -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 \