From 7894b0c865545b8194c8278563042b101a9aa97e Mon Sep 17 00:00:00 2001 From: Cxx0822 <1556464090@qq.com> Date: Sun, 21 Jun 2026 23:24:45 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=A2=9E=E5=8A=A0sweetchat=E4=BB=A3?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nginx.conf | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/nginx.conf b/nginx.conf index 851ee08..8ec5b39 100644 --- a/nginx.conf +++ b/nginx.conf @@ -122,6 +122,24 @@ server { proxy_pass http://host.docker.internal:3000/; } + location /ws/ { + proxy_pass http://host.docker.internal:5050; + + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "Upgrade"; + + 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_read_timeout 86400; + } + + location /sweet-chat-api/ { + proxy_pass http://host.docker.internal:5051/; + } + location / { try_files $uri $uri/ =404; }