diff --git a/services/testedit-git.service b/services/testedit-git.service index 614720a..699f027 100644 --- a/services/testedit-git.service +++ b/services/testedit-git.service @@ -6,7 +6,7 @@ After=network.target [Service] User=root WorkingDirectory=/opt/testbot-git -ExecStart=/opt/testbot-git/venv/bin/gunicorn --bind 192.168.0.109:5006 --workers 4 --timeout=60 wsgi_edit:app +ExecStart=/opt/testbot-git/venv/bin/gunicorn --bind 192.168.0.109:5006 --workers 4 --timeout=120 wsgi_edit:app Restart=always [Install] diff --git a/volk_load.py b/volk_load.py index f05eada..c1dd2c6 100644 --- a/volk_load.py +++ b/volk_load.py @@ -178,7 +178,7 @@ def load_categories(): try: # Добавляем таймаут для избежания зависаний (30 секунд) from urllib.request import Request - req = Request(desc_url, headers={'User-Agent': 'Mozilla/5.0 (MyApp)'}) + req = Request(desc_url, headers={'User-Agent': 'Mozilla/5.0 (Telefaust)'}) log_message(f"request response = {req}", "DEBUG") safe_log_direct("run urlopen", "DEBUG") response = urlopen(req, timeout=30)