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);