mirror of
https://github.com/aljazceru/enclava.git
synced 2025-12-18 16:04:28 +01:00
nginx proxy
This commit is contained in:
@@ -13,9 +13,6 @@ http {
|
||||
proxy_read_timeout 600;
|
||||
send_timeout 600;
|
||||
|
||||
# FastAPI timeout handling
|
||||
proxy_read_timeout 300s;
|
||||
proxy_send_timeout 300s;
|
||||
|
||||
upstream backend {
|
||||
server enclava-backend:8000;
|
||||
|
||||
@@ -7,6 +7,9 @@ http {
|
||||
server enclava-backend-test:8000;
|
||||
}
|
||||
|
||||
proxy_connect_timeout 60s;
|
||||
proxy_send_timeout 300s;
|
||||
proxy_read_timeout 300s;
|
||||
# Frontend service disabled for simplified testing
|
||||
|
||||
# Logging configuration for tests
|
||||
@@ -40,11 +43,7 @@ http {
|
||||
# Request/Response buffering
|
||||
proxy_buffering off;
|
||||
proxy_request_buffering off;
|
||||
|
||||
# Timeouts for long-running requests
|
||||
proxy_connect_timeout 60s;
|
||||
proxy_send_timeout 60s;
|
||||
proxy_read_timeout 60s;
|
||||
|
||||
|
||||
# CORS headers for frontend
|
||||
add_header 'Access-Control-Allow-Origin' '*' always;
|
||||
@@ -77,9 +76,7 @@ http {
|
||||
proxy_request_buffering off;
|
||||
|
||||
# Timeouts for long-running requests (LLM streaming)
|
||||
proxy_connect_timeout 60s;
|
||||
proxy_send_timeout 300s;
|
||||
proxy_read_timeout 300s;
|
||||
|
||||
|
||||
# CORS headers for external clients
|
||||
add_header 'Access-Control-Allow-Origin' '*' always;
|
||||
|
||||
Reference in New Issue
Block a user