Standardize SurClaw ports away from defaults
- Change the API default listen port from 3000 to 3100 and include the Docker frontend origin in default CORS. - Point Vite's default API proxy, Docker API container port, and Nginx upstream to 3100. - Keep Docker host ports on 4002 for web, 3002 for API, and 5433 for PostgreSQL. - Update environment examples and documentation to remove stale localhost:3000 guidance.
This commit is contained in:
@@ -29,6 +29,6 @@
|
||||
- 技术栈:React 19、TypeScript、Vite 6、Tailwind CSS 4、React Router DOM 7、NestJS、Prisma、PostgreSQL。
|
||||
- 应用类型:前端 SPA + NestJS API。登录、报告、模板、用户管理、部门模板授权、系统设置和签名文件已接入后端,其余主业务页面仍处于迁移期。
|
||||
- 数据层:认证用户、报告、报告媒体关系、模板、字段库、模板图片资源、视频/关键帧文件、用户管理、部门模板授权、系统设置和签名文件来自 PostgreSQL/后端文件目录。
|
||||
- 本地开发端口:前端 `3001`,后端 API `3000`;Docker Compose 暴露 API 到宿主机 `3002`。
|
||||
- 本地开发端口:前端 `3001`,后端 API `3100`;Docker Compose 暴露 API 到宿主机 `3002`。
|
||||
- 默认账号:`admin / 123456`、`manager / 123456`、`0001 / 123456`。
|
||||
- 核心代码目录:`src/pages`、`src/components`、`src/utils`、`src/types.ts`。
|
||||
|
||||
Reference in New Issue
Block a user