diff --git a/Dockerfile b/Dockerfile index dc02c44..174e281 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,4 +10,4 @@ COPY site /app/site EXPOSE 5000 -CMD ["python", "site/app.py"] +CMD ["gunicorn", "--bind", "0.0.0.0:5000", "--timeout", "300", "--workers", "1", "site.app:app"] diff --git a/site/templates/drhider.html b/site/templates/drhider.html index effa879..af6b10d 100644 --- a/site/templates/drhider.html +++ b/site/templates/drhider.html @@ -125,7 +125,7 @@ BTN.onclick = async () => { const fd = new FormData(); files.forEach(f => fd.append('files', f)); try { setStatus('progress', '⏳ Обработка (может занять до минуты)...'); - const r = await fetch('/api/drhider', { method:'POST', body:fd, signal:AbortSignal.timeout(300000) }); + const r = await fetch('/api/drhider', { method:'POST', body:fd }); if (!r.ok) { const txt = await r.text(); throw new Error(txt);