chore(config): 更新端口配置从3001到3010

- 将 .env.example 中的 PORT 从 3001 更改为 3010
- 将 CORS_ORIGIN 从 http://localhost:5173 更改为 http://localhost:5180
- 更新 compose.yaml 中的服务端口和健康检查端口为 3010
- 修改 Dockerfile 中暴露的端口为 3010
- 更新文档中的 API 端口引用从 3001 到 3010
- 在 Vite 配置中设置开发服务器端口为 5180
- 更新 Vite 代理目标地址为 http://localhost:3010
This commit is contained in:
yuzhe
2026-07-21 17:13:08 +08:00
parent b0c498fbb6
commit b42f46c182
8 changed files with 21 additions and 21 deletions

View File

@@ -32,9 +32,9 @@ pnpm install
pnpm dev
```
- 前端:`http://localhost:5173`
- API`http://localhost:3001`
- 健康检查:`http://localhost:3001/api/health`
- 前端:`http://localhost:5180`
- API`http://localhost:3010`
- 健康检查:`http://localhost:3010/api/health`
未配置 `DATABASE_URL` 时使用 `data/app.db`;本地图片保存在 `uploads/`。这两个目录包含运行数据、账号信息或用户文件,已排除在 Git 之外。
@@ -75,7 +75,7 @@ pnpm db:postgres:migrate -- --replace
docker compose up -d --build
```
应用通过 `http://服务器地址:3001` 同时提供前端与 API。公网环境应在前面配置 HTTPS 反向代理;生产 Cookie 会自动添加 `Secure`
应用通过 `http://服务器地址:3010` 同时提供前端与 API。公网环境应在前面配置 HTTPS 反向代理;生产 Cookie 会自动添加 `Secure`
## 文档与检查