fix: increase timeout for long-running AI chat requests

This commit is contained in:
shokollm
2026-04-10 08:51:03 +00:00
parent c6baadf8b8
commit 560b61c431
3 changed files with 6 additions and 0 deletions

View File

@@ -34,6 +34,9 @@ server {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_cache_bypass $http_upgrade;
proxy_read_timeout 300s;
proxy_connect_timeout 75s;
proxy_send_timeout 300s;
}
location /ws/ {

View File

@@ -10,6 +10,8 @@ Environment="PATH=/var/www/bot/src/backend/venv/bin"
ExecStart=/var/www/bot/src/backend/venv/bin/python /var/www/bot/src/backend/run.py
Restart=always
RestartSec=10
TimeoutStartSec=300
TimeoutStopSec=300
EnvironmentFile=/var/www/bot/data/.env