From f693da17ef204f8432292306eb339b80ba325c30 Mon Sep 17 00:00:00 2001 From: Ryo Date: Wed, 6 Aug 2025 12:28:03 +0800 Subject: [PATCH] fix(ci): fix the issue where the port number is missing during image (#602) --- docker/nginx/conf.d/default.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/nginx/conf.d/default.conf b/docker/nginx/conf.d/default.conf index fca53b99..43d2fdbb 100644 --- a/docker/nginx/conf.d/default.conf +++ b/docker/nginx/conf.d/default.conf @@ -13,10 +13,10 @@ server { } # API proxy - location /api/ { + location ~ ^/(api|v[1-3])/ { proxy_pass http://coze-server:8888; - proxy_set_header Host $host; + proxy_set_header Host $http_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;