From 931eb1160ce7667cb987919b31a66acc552c1678 Mon Sep 17 00:00:00 2001 From: Jafeng <2998840497@qq.com> Date: Mon, 25 Aug 2025 14:18:16 +0800 Subject: [PATCH] fix(deploy): preserve /api prefix in nginx proxy_pass --- deploy/nginx/docker-chat.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deploy/nginx/docker-chat.conf b/deploy/nginx/docker-chat.conf index 78e4666..9365419 100644 --- a/deploy/nginx/docker-chat.conf +++ b/deploy/nginx/docker-chat.conf @@ -6,7 +6,8 @@ server { index index.html; location /api/ { - proxy_pass http://backend:4000/; + # preserve the original URI (/api/...) when proxying + proxy_pass http://backend:4000; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection 'upgrade';