feat: 调整本地开发端口为前端 5888、后端 8070

This commit is contained in:
2026-10-22 09:42:35 +08:00
parent 7685f280c6
commit d7156c1ebb
9 changed files with 15 additions and 15 deletions
+3 -3
View File
@@ -4,13 +4,13 @@
JWT_SECRET=your-secret-key-here-must-be-at-least-64-bytes-long-for-hs512-algorithm-security
MONGO_URI=mongodb://ai_crm_angent_dev:ai_crm_angent_dev@192.168.3.100:27017/?authSource=ai_crm_angent_dev
MONGO_DB=ai_crm_angent_dev
SERVER_BASE_URL=http://localhost:8080
SERVER_BASE_URL=http://localhost:8070
LLM_FALLBACK_ENABLED=true
LLM_FALLBACK_BASE_URL=https://api.deepseek.com/v1
LLM_FALLBACK_API_KEY=
LLM_FALLBACK_MODEL=deepseek-chat
CORS_ORIGINS=http://localhost:5173,http://localhost:5666
MCP_BASE_URL=http://localhost:8080/mcp
CORS_ORIGINS=http://localhost:5173,http://localhost:5888
MCP_BASE_URL=http://localhost:8070/mcp
MCP_BEARER_TOKEN=dev-agent-mcp-token
MCP_TOOLS_ENABLED=true
PORT=8200
+3 -3
View File
@@ -13,13 +13,13 @@
JWT_SECRET=your-secret-key-here-must-be-at-least-64-bytes-long-for-hs512-algorithm-security
MONGO_URI=mongodb://ai_crm_angent_dev:ai_crm_angent_dev@192.168.3.100:27017/?authSource=ai_crm_angent_dev
MONGO_DB=ai_crm_angent_dev
SERVER_BASE_URL=http://localhost:8080
SERVER_BASE_URL=http://localhost:8070
LLM_FALLBACK_ENABLED=true
LLM_FALLBACK_BASE_URL=https://api.deepseek.com/v1
LLM_FALLBACK_API_KEY=
LLM_FALLBACK_MODEL=deepseek-chat
CORS_ORIGINS=http://localhost:5173,http://localhost:5666
CORS_ORIGINS=http://localhost:5173,http://localhost:5888
# 须与同环境 Server ecom.agent.mcp.bearer-token / AGENT_MCP_TOKEN 一致;空则 MCP 工具整段跳过
MCP_BASE_URL=http://localhost:8080/mcp
MCP_BASE_URL=http://localhost:8070/mcp
MCP_BEARER_TOKEN=dev-agent-mcp-token
MCP_TOOLS_ENABLED=true
+1 -1
View File
@@ -33,7 +33,7 @@ AI CRM 主后端
或指定端口:
```bash
./mvnw spring-boot:run -Dspring-boot.run.arguments="--server.port=8080"
./mvnw spring-boot:run -Dspring-boot.run.arguments="--server.port=8070"
```
## 项目结构
@@ -1,7 +1,7 @@
# 开发环境(本地默认 profile)
server:
port: 8080
port: 8070
spring:
datasource:
@@ -29,7 +29,7 @@ sys:
# multipart 通过后端上传;direct 直接上传
storage-type: oss
upload-mode: direct
access-domain: http://localhost:5666
access-domain: http://localhost:5888
ecom:
license:
+1 -1
View File
@@ -15,7 +15,7 @@
"type": "chrome",
"name": "vben admin antd dev",
"request": "launch",
"url": "http://localhost:5666",
"url": "http://localhost:5888",
"env": { "NODE_ENV": "development" },
"sourceMaps": true,
"webRoot": "${workspaceFolder}/apps/web-antd"
+1 -1
View File
@@ -19,7 +19,7 @@ pnpm install
pnpm dev
```
访问:http://localhost:5666
访问:http://localhost:5888
## 构建生产版本
+1 -1
View File
@@ -1,5 +1,5 @@
# 端口号
VITE_PORT=5666
VITE_PORT=5888
VITE_BASE=/
+2 -2
View File
@@ -52,7 +52,7 @@ export default defineConfig(async () => {
'/api': {
changeOrigin: true,
// 后端服务地址
target: 'http://localhost:8080',
target: 'http://localhost:8070',
ws: true,
// SSE 长连接:禁止代理空闲超时断开
timeout: 0,
@@ -62,7 +62,7 @@ export default defineConfig(async () => {
// 静态资源代理 - 用于访问上传的图片和文件
'/uploads': {
changeOrigin: true,
target: 'http://localhost:8080',
target: 'http://localhost:8070',
ws: false,
},
},