From 2e70a3d2734d4bb55cb5007bb8377b10bb60f79d Mon Sep 17 00:00:00 2001 From: tim Date: Mon, 27 Oct 2025 14:27:17 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker/docker-compose.yaml | 2 +- nginx/openisle | 4 ++-- nginx/openisle-staging | 12 ++++++------ 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/docker/docker-compose.yaml b/docker/docker-compose.yaml index 49425c5fd..b493d80d5 100644 --- a/docker/docker-compose.yaml +++ b/docker/docker-compose.yaml @@ -186,7 +186,7 @@ services: env_file: - ${ENV_FILE:-../.env} environment: - OPENISLE_MCP_BACKEND_BASE_URL: ${OPENISLE_MCP_BACKEND_BASE_URL:-http://springboot:8080} + OPENISLE_MCP_BACKEND_BASE_URL: http://springboot:${SERVER_PORT:-8080} OPENISLE_MCP_HOST: 0.0.0.0 OPENISLE_MCP_PORT: ${OPENISLE_MCP_PORT:-8085} OPENISLE_MCP_TRANSPORT: ${OPENISLE_MCP_TRANSPORT:-streamable-http} diff --git a/nginx/openisle b/nginx/openisle index fb523acdc..9a6d063c8 100644 --- a/nginx/openisle +++ b/nginx/openisle @@ -120,8 +120,8 @@ server { add_header Cache-Control "no-store" always; } - location ^~ /mcp/ { - proxy_pass http://127.0.0.1:8085/; + location /mcp { + proxy_pass http://127.0.0.1:8085; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; diff --git a/nginx/openisle-staging b/nginx/openisle-staging index ef5d014c9..0c10f0e5a 100644 --- a/nginx/openisle-staging +++ b/nginx/openisle-staging @@ -42,8 +42,8 @@ server { proxy_pass http://127.0.0.1:8081/api/; proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection $connection_upgrade; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection $connection_upgrade; proxy_set_header Host $host; @@ -59,7 +59,7 @@ server { proxy_no_cache 1; proxy_cache_bypass 1; } - + location ^~ /websocket/ { proxy_pass http://127.0.0.1:8083/; proxy_http_version 1.1; @@ -80,8 +80,8 @@ server { add_header Cache-Control "no-store" always; } - location ^~ /mcp/ { - proxy_pass http://127.0.0.1:8086/; + location /mcp { + proxy_pass http://127.0.0.1:8086; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; @@ -100,4 +100,4 @@ server { add_header Cache-Control "no-store" always; } -} +} \ No newline at end of file