From bf02395e48007e877cb1f4a57aec12f55ed33947 Mon Sep 17 00:00:00 2001 From: loveuer Date: Wed, 25 Dec 2024 14:52:05 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20deployment/nginx.conf?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deployment/nginx.conf | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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;