diff --git a/deployment/nginx.conf b/deployment/nginx.conf index ef0111f..bd0b963 100644 --- a/deployment/nginx.conf +++ b/deployment/nginx.conf @@ -25,7 +25,19 @@ http { gzip on; server { - client_max_body_size 5m; + client_max_body_size 1g; + + location /v2 { + proxy_pass http://127.0.0.1:8383; + + # Add headers to support SSE + proxy_http_version 1.1; + proxy_set_header Connection ''; + proxy_set_header Host $host; + 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; + } location /_api { proxy_pass http://127.0.0.1:8383;