fix: 修改配置

This commit is contained in:
tim
2025-10-27 14:27:17 +08:00
parent 779bb2db78
commit 2e70a3d273
3 changed files with 9 additions and 9 deletions

View File

@@ -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}

View File

@@ -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;

View File

@@ -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;
}
}
}