diff --git a/README.md b/README.md index 8e16e423..3b147d58 100644 --- a/README.md +++ b/README.md @@ -10,8 +10,8 @@ - 默认无任何 demo 数据;生产初始化只确保固定管理员 `admin@huapont.cn / admin123` 存在 - 验证方式: - `docker compose config` - - `curl -i http://127.0.0.1/` - - `curl -i http://127.0.0.1/health` + - `curl -i http://127.0.0.1:8888/` + - `curl -i http://127.0.0.1:8888/health` ## 账号与注册 - 初始化管理员:`admin@huapont.cn / admin123`(通过生产初始化命令显式创建) @@ -28,7 +28,7 @@ - 普通成员(无项目角色):仅浏览 ## 访问方式 -- 前端:`http://localhost` +- 前端:`http://localhost:8888` - 后端 API:同域 `/api/v1/*` - `nginx` 负责托管前端静态资源,并将 `/api` 与 `/health` 转发到 `backend` diff --git a/docker-compose.yaml b/docker-compose.yaml index 452ba2b8..e5d43329 100755 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -57,9 +57,7 @@ services: container_name: ctms_nginx restart: always ports: - - "80:80" - - "443:443" - - "8888:8888" + - "8888:80" volumes: - ./nginx/certs:/etc/nginx/certs:ro - ./frontend/public/favicon.ico:/usr/share/nginx/html/favicon.ico:ro diff --git a/docs/guides/release-checklist.md b/docs/guides/release-checklist.md index 3a53ea54..6e024d15 100644 --- a/docs/guides/release-checklist.md +++ b/docs/guides/release-checklist.md @@ -64,7 +64,7 @@ ## 8. 冒烟脚本 - [ ] `cd backend && docker compose exec -T backend python scripts/smoke_setup_config.py` - [ ] 使用 `BASE_URL/EMAIL/PASSWORD/STUDY_ID` 环境变量执行一次(覆盖指定项目) -- [ ] `BASE_URL=http://localhost EMAIL=... PASSWORD=... STUDY_ID=... bash docs/setup-config-curl-smoke.sh` +- [ ] `BASE_URL=http://localhost:8888 EMAIL=... PASSWORD=... STUDY_ID=... bash docs/setup-config-curl-smoke.sh` - [ ] 导入并执行 Postman 集合 `docs/postman/setup-config.postman_collection.json` ## 9. 发布前确认 diff --git a/docs/guides/setup-config-api.md b/docs/guides/setup-config-api.md index d921466c..f3053b06 100644 --- a/docs/guides/setup-config-api.md +++ b/docs/guides/setup-config-api.md @@ -186,7 +186,7 @@ Content-Type: multipart/form-data - 使用方式: ```bash chmod +x docs/setup-config-curl-smoke.sh -BASE_URL=http://localhost \ +BASE_URL=http://localhost:8888 \ EMAIL=admin@example.com \ PASSWORD=admin123 \ STUDY_ID=aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa \ diff --git a/docs/plans/2026-03-27-production-compose-implementation.md b/docs/plans/2026-03-27-production-compose-implementation.md index b4c2159c..19a1d1d4 100644 --- a/docs/plans/2026-03-27-production-compose-implementation.md +++ b/docs/plans/2026-03-27-production-compose-implementation.md @@ -103,8 +103,8 @@ Expected: PASS **Step 3: Check HTTP endpoints** -Run: `curl -i http://127.0.0.1/` +Run: `curl -i http://127.0.0.1:8888/` Expected: `200 OK` and HTML payload -Run: `curl -i http://127.0.0.1/health` +Run: `curl -i http://127.0.0.1:8888/health` Expected: successful backend health response diff --git a/docs/postman/local.postman_environment.example.json b/docs/postman/local.postman_environment.example.json index 89b3263c..c68bb7ef 100644 --- a/docs/postman/local.postman_environment.example.json +++ b/docs/postman/local.postman_environment.example.json @@ -1,7 +1,7 @@ { "name": "CTMS Local Example", "values": [ - { "key": "base_url", "value": "http://localhost", "type": "default", "enabled": true }, + { "key": "base_url", "value": "http://localhost:8888", "type": "default", "enabled": true }, { "key": "email", "value": "admin@example.com", "type": "default", "enabled": true }, { "key": "password", "value": "admin123", "type": "default", "enabled": true }, { "key": "study_id", "value": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa", "type": "default", "enabled": true }, diff --git a/docs/postman/setup-config.postman_collection.json b/docs/postman/setup-config.postman_collection.json index d2a758ff..5b7e5f97 100644 --- a/docs/postman/setup-config.postman_collection.json +++ b/docs/postman/setup-config.postman_collection.json @@ -189,7 +189,7 @@ } ], "variable": [ - { "key": "base_url", "value": "http://localhost" }, + { "key": "base_url", "value": "http://localhost:8888" }, { "key": "email", "value": "admin@example.com" }, { "key": "password", "value": "admin123" }, { "key": "study_id", "value": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa" }, diff --git a/docs/setup-config-curl-smoke.sh b/docs/setup-config-curl-smoke.sh index e38fc104..1184c1e2 100755 --- a/docs/setup-config-curl-smoke.sh +++ b/docs/setup-config-curl-smoke.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -euo pipefail -BASE_URL="${BASE_URL:-http://localhost}" +BASE_URL="${BASE_URL:-http://localhost:8888}" EMAIL="${EMAIL:-admin@example.com}" PASSWORD="${PASSWORD:-admin123}" STUDY_ID="${STUDY_ID:-aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa}"