From 24bc9448a0a1c952360bc8bab4dbfe007ecd0b52 Mon Sep 17 00:00:00 2001 From: Cccc_ Date: Tue, 5 May 2026 15:01:35 +0800 Subject: [PATCH] chore(deploy): change webui port to 3090 --- README.md | 2 +- compose.yaml | 2 +- deploy/compose.env.example | 4 ++-- docs/deployment.md | 10 +++++----- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 029a326..333f370 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ cp deploy/compose.env.example .env docker compose up -d --build ``` -默认访问地址: +默认访问地址: ### 访问地址 diff --git a/compose.yaml b/compose.yaml index efe067c..a9bde46 100644 --- a/compose.yaml +++ b/compose.yaml @@ -39,7 +39,7 @@ services: backend: condition: service_healthy ports: - - "${CHECKIN_WEB_PORT:-8080}:80" + - "${CHECKIN_WEB_PORT:-3090}:80" restart: unless-stopped healthcheck: test: ["CMD-SHELL", "wget -qO- http://127.0.0.1/health >/dev/null"] diff --git a/deploy/compose.env.example b/deploy/compose.env.example index eea40b5..309afaa 100644 --- a/deploy/compose.env.example +++ b/deploy/compose.env.example @@ -2,7 +2,7 @@ # cp deploy/compose.env.example .env # Public web port exposed by the web service. -CHECKIN_WEB_PORT=8080 +CHECKIN_WEB_PORT=3090 # ==================== Backend runtime paths ==================== # Container-local defaults for the Compose deployment. @@ -16,7 +16,7 @@ SECRET_KEY=change-this-to-a-long-random-secret # Use the browser origins that will open the frontend. # Public domain + optional intranet origins. -CORS_ORIGINS=https://checkin.example.com,http://192.168.1.10:8080,http://checkin.lan:8080 +CORS_ORIGINS=https://checkin.example.com,http://192.168.1.10:3090,http://checkin.lan:3090 FRONTEND_URL=https://checkin.example.com # ==================== Logging ==================== diff --git a/docs/deployment.md b/docs/deployment.md index 0112a4b..5baae75 100644 --- a/docs/deployment.md +++ b/docs/deployment.md @@ -26,7 +26,7 @@ cp deploy/compose.env.example .env - `SECRET_KEY`: 改成足够长的随机字符串。 - `CORS_ORIGINS`: 改成浏览器实际访问的站点,例如 `https://checkin.example.com`。 - `FRONTEND_URL`: 改成同一个公开站点,用于邮件里的链接。 -- `CHECKIN_WEB_PORT`: 默认 `8080`,按服务器端口规划调整。 +- `CHECKIN_WEB_PORT`: 默认 `3090`,按服务器端口规划调整。 - SMTP 配置:需要邮件通知时填写真实 SMTP 参数。 启动: @@ -37,9 +37,9 @@ docker compose up -d --build 默认访问: -- Web UI: `http://localhost:8080` -- API 健康检查: `http://localhost:8080/health` -- API 文档: `http://localhost:8080/docs` +- Web UI: `http://localhost:3090` +- API 健康检查: `http://localhost:3090/health` +- API 文档: `http://localhost:3090/docs` ### 运行结构 @@ -131,7 +131,7 @@ docker compose up -d --build 端口占用: ```bash -sudo lsof -i :8080 +sudo lsof -i :3090 ``` 修改 `.env` 中的 `CHECKIN_WEB_PORT` 后重新启动: