From a2507f24bf1d573fd85642892de980b588554e88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CNaeel=E2=80=9D?= Date: Fri, 19 Jun 2026 09:50:45 +0400 Subject: [PATCH] =?UTF-8?q?SSE=20=D1=87=D0=B5=D1=80=D0=B5=D0=B7=20=D0=92?= =?UTF-8?q?=D0=9C=20(proxy=5Fbuffering=20off)=20+=20nginx=20config=20(v1.0?= =?UTF-8?q?.54)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/nginx-contracts.conf | 3 ++- index.cfm | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/deploy/nginx-contracts.conf b/deploy/nginx-contracts.conf index ffceddc..c4c0ac5 100644 --- a/deploy/nginx-contracts.conf +++ b/deploy/nginx-contracts.conf @@ -15,7 +15,8 @@ server { proxy_pass https://contractor.luceek8s.dev.nubes.ru; proxy_set_header Host contractor.luceek8s.dev.nubes.ru; proxy_set_header X-Real-IP $remote_addr; - proxy_read_timeout 180s; + proxy_read_timeout 600s; + proxy_buffering off; client_max_body_size 100m; } diff --git a/index.cfm b/index.cfm index 66c7f2f..8d7ebfa 100644 --- a/index.cfm +++ b/index.cfm @@ -61,7 +61,7 @@
Nubes - Сверка договоров — LLM v1.0.53 — Lucee + Сверка договоров — LLM v1.0.54 — Lucee
@@ -142,6 +142,7 @@ lucide.createIcons(); var UPLOAD_URL = 'https://contracts.kube5s.ru/lucee/upload.cfm'; var CONVERT_URL = 'https://contracts.kube5s.ru/convert-doc'; var SITE_URL = ''; // same origin for api calls +var LUCEE_PROXY = 'https://contracts.kube5s.ru/lucee'; // SSE через ВМ (без буферизации) var fileInput = document.getElementById('fileInput'); var parseBtn = document.getElementById('parseBtn'); @@ -341,7 +342,7 @@ document.getElementById('llmBtn').addEventListener('click', async function() { }, 200); // SSE — прогресс по каждому файлу - var es = new EventSource('/process.cfm?contract_id=' + contractId); + var es = new EventSource(LUCEE_PROXY + '/process.cfm?contract_id=' + contractId); es.onmessage = function(e) { var d = JSON.parse(e.data);