From e9712cef23e6e4819f1d48bf0a864358edad274e Mon Sep 17 00:00:00 2001 From: Lars Date: Sat, 18 Apr 2026 07:03:48 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20BASE=5FURL=20typo=20+=20nginx=20timeout?= =?UTF-8?q?=20f=C3=BCr=20Workflows?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Frontend: - api.js Zeile 499: BASE_URL → BASE (executePromptStreaming) - nginx.conf: proxy_read_timeout 300s für lange Workflow-Ausführungen Fixes: - "BASE_URL is not defined" Fehler in Analyse-Seite - 504 Gateway Timeout bei Workflow-Ausführung (>60s) Co-Authored-By: Claude Sonnet 4.5 --- frontend/nginx.conf | 3 +++ frontend/src/utils/api.js | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/nginx.conf b/frontend/nginx.conf index 7196b3c..d3eedef 100644 --- a/frontend/nginx.conf +++ b/frontend/nginx.conf @@ -8,6 +8,9 @@ server { proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; client_max_body_size 20M; + proxy_read_timeout 300s; + proxy_connect_timeout 60s; + proxy_send_timeout 60s; } location / { diff --git a/frontend/src/utils/api.js b/frontend/src/utils/api.js index c52e032..9a1589e 100644 --- a/frontend/src/utils/api.js +++ b/frontend/src/utils/api.js @@ -496,7 +496,7 @@ export const api = { // Return a Promise that resolves with final result return new Promise((resolve, reject) => { - const url = `${BASE_URL}/prompts/execute-stream?${params}` + const url = `${BASE}/prompts/execute-stream?${params}` const eventSource = new EventSource(url)