SSE через ВМ (proxy_buffering off) + nginx config (v1.0.54)

This commit is contained in:
2026-06-19 09:50:45 +04:00
parent c6108ead6d
commit a2507f24bf
2 changed files with 5 additions and 3 deletions
+2 -1
View File
@@ -15,7 +15,8 @@ server {
proxy_pass https://contractor.luceek8s.dev.nubes.ru; proxy_pass https://contractor.luceek8s.dev.nubes.ru;
proxy_set_header Host contractor.luceek8s.dev.nubes.ru; proxy_set_header Host contractor.luceek8s.dev.nubes.ru;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
proxy_read_timeout 180s; proxy_read_timeout 600s;
proxy_buffering off;
client_max_body_size 100m; client_max_body_size 100m;
} }
+3 -2
View File
@@ -61,7 +61,7 @@
<body> <body>
<div class="topbar"> <div class="topbar">
<img src="/nubes-logo.svg" alt="Nubes"> <img src="/nubes-logo.svg" alt="Nubes">
<span class="title">Сверка договоров — LLM <span style="font-weight:400;color:var(--muted);font-size:12px;">v1.0.53 — Lucee</span></span> <span class="title">Сверка договоров — LLM <span style="font-weight:400;color:var(--muted);font-size:12px;">v1.0.54 — Lucee</span></span>
</div> </div>
<div class="content"> <div class="content">
@@ -142,6 +142,7 @@ lucide.createIcons();
var UPLOAD_URL = 'https://contracts.kube5s.ru/lucee/upload.cfm'; var UPLOAD_URL = 'https://contracts.kube5s.ru/lucee/upload.cfm';
var CONVERT_URL = 'https://contracts.kube5s.ru/convert-doc'; var CONVERT_URL = 'https://contracts.kube5s.ru/convert-doc';
var SITE_URL = ''; // same origin for api calls var SITE_URL = ''; // same origin for api calls
var LUCEE_PROXY = 'https://contracts.kube5s.ru/lucee'; // SSE через ВМ (без буферизации)
var fileInput = document.getElementById('fileInput'); var fileInput = document.getElementById('fileInput');
var parseBtn = document.getElementById('parseBtn'); var parseBtn = document.getElementById('parseBtn');
@@ -341,7 +342,7 @@ document.getElementById('llmBtn').addEventListener('click', async function() {
}, 200); }, 200);
// SSE — прогресс по каждому файлу // 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) { es.onmessage = function(e) {
var d = JSON.parse(e.data); var d = JSON.parse(e.data);