nginx proxy

This commit is contained in:
2025-09-18 11:12:00 +02:00
parent 9db8499a56
commit 3a3c932ee6
4 changed files with 16 additions and 62 deletions

View File

@@ -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;

View File

@@ -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;