From e7e63161e88b37dcb6ed2ea05d5da376e7affe64 Mon Sep 17 00:00:00 2001 From: Kitos Date: Tue, 10 Feb 2026 16:34:23 +0100 Subject: [PATCH] fix: increase Nginx proxy timeout to 300s for long-running API calls MITRE sync and data source imports can take over 60s on first run, causing Nginx to return 504 Gateway Timeout to the frontend. --- frontend/nginx.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frontend/nginx.conf b/frontend/nginx.conf index 8a043bb..323ffcf 100644 --- a/frontend/nginx.conf +++ b/frontend/nginx.conf @@ -26,6 +26,11 @@ server { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; + + # Long-running operations (MITRE sync, data source imports) need more time + proxy_read_timeout 300s; + proxy_connect_timeout 10s; + proxy_send_timeout 300s; } # Health endpoint proxy