diff --git a/nginx.conf b/nginx.conf index ebb7298..0b43a0c 100644 --- a/nginx.conf +++ b/nginx.conf @@ -12,7 +12,7 @@ http { server { listen 80; - listen 3000 + listen 3000; server_name localhost; # Backend API, proxied to the FastAPI container on the same Docker @@ -29,6 +29,12 @@ http { 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; + + # RAG/LLM endpoints (catalog generation, enrichment) routinely run + # well past nginx's 60s default, which would surface as a 504. + proxy_connect_timeout 30s; + proxy_send_timeout 300s; + proxy_read_timeout 300s; } location / {