docs: update production config references (HH-465) (#103)

Co-authored-by: Rogee <rogee@ipao.vip>
This commit is contained in:
Rogee
2026-08-22 21:20:11 +08:00
committed by GitHub
co-authored by rogee
parent 2b75390529
commit c86744d326
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -104,7 +104,7 @@ make docker
## Configuration
- Config files: `backend/configs/config.yaml` (base) + `config.dev.yaml` / `config.prod.yaml` (env overlays).
- Config files: `backend/configs/config.yaml` (base) + `config.dev.yaml` (development overlay) / `backend/configs/config.production.yaml` (production overlay).
- Viper search paths: `./configs`, `./`, `/etc/gochat/`.
- Runtime config dir is resolved from the base config's location, so env overlays load from the same dir automatically.
- Secrets/`.env` are gitignored — never commit them.
@@ -626,7 +626,7 @@ worker:
redis_sweep_interval_s: 15 # 开发环境更短,便于测试延迟 job
```
### 4.3 config.prod.yaml 变更
### 4.3 backend/configs/config.production.yaml 变更
```yaml
worker:
@@ -843,7 +843,7 @@ if cfg.Worker.RedisSweepIntervalS < 1 {
| 2.4 | `internal/config/validator.go` | 新增字段校验 |
| 2.5 | `internal/app/bootstrap.go` | 调整 rdb 创建顺序(移到 workerPool 之前),改用 `NewWorkerPoolWithOptions` |
| 2.6 | `configs/config.dev.yaml` | 新增 worker Redis 配置 |
| 2.7 | `configs/config.prod.yaml` | 新增 worker Redis 配置 |
| 2.7 | `backend/configs/config.production.yaml` | 新增 worker Redis 配置 |
### Phase 3:测试
@@ -911,6 +911,6 @@ if cfg.Worker.RedisSweepIntervalS < 1 {
| `internal/config/validator.go` | 校验 | 新字段校验 |
| `internal/app/bootstrap.go` | 接入 | rdb 顺序调整、NewWorkerPoolWithOptions |
| `configs/config.dev.yaml` | 配置 | worker Redis 参数 |
| `configs/config.prod.yaml` | 配置 | worker Redis 参数 |
| `backend/configs/config.production.yaml` | 配置 | worker Redis 参数 |
| `deploy/docker/Dockerfile` | 注释更新 | gochat-worker 说明(Phase 4 |
| `deploy/docker/docker-compose.prod.yml` | 部署 | worker service commandPhase 4 |