From 817341a4b43c63152d06726408ee2308a5f3a93d Mon Sep 17 00:00:00 2001 From: rashad Date: Sun, 12 Jul 2026 21:56:49 +0800 Subject: [PATCH] docs: fix environment variable defaults --- README.md | 6 +++--- README.zh-CN.md | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 6909dce..f0791aa 100644 --- a/README.md +++ b/README.md @@ -120,10 +120,10 @@ docker run --rm -p 7860:7860 -e PORT=7860 -e MAX_CONCURRENCY=1 -v miaocut-data:/ | `PORT` | `8000` | Port to listen on | | `TRUST_PROXY` | `0` | Set `1` to read the real client IP from `X-Forwarded-For` | | `ALLOWED_ORIGINS` | empty (skips check) | Comma-separated allowed frontend origins | -| `MAX_CONCURRENCY` | `1` | Max concurrent inferences (key knob against OOM) | +| `MAX_CONCURRENCY` | `4` | Max concurrent inferences (key knob against OOM) | | `CUTOUT_PROFILE` | `sharp` | Default cutout profile (`sharp` / `fur`) | -| `DATA_DIR` | `.` | Directory for persisted feedback data | -| `ENABLE_DOCS` | `1` | Set `0` to disable the `/docs` endpoint | +| `DATA_DIR` | `data` | Directory for persisted feedback data | +| `ENABLE_DOCS` | `0` | Set `1` to enable the `/docs` endpoint | ## 🛡️ Privacy & security diff --git a/README.zh-CN.md b/README.zh-CN.md index 95e5469..e11cb62 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -114,10 +114,10 @@ docker run --rm -p 7860:7860 -e PORT=7860 -e MAX_CONCURRENCY=1 -v miaocut-data:/ | `PORT` | `8000` | 服务监听端口 | | `TRUST_PROXY` | `0` | 设为 `1` 时从 `X-Forwarded-For` 提取真实 IP | | `ALLOWED_ORIGINS` | 空(跳过校验) | 允许的前端来源域名,逗号分隔 | -| `MAX_CONCURRENCY` | `1` | 最大并发推理数(防 OOM 关键旋钮) | +| `MAX_CONCURRENCY` | `4` | 最大并发推理数(防 OOM 关键旋钮) | | `CUTOUT_PROFILE` | `sharp` | 默认抠图模式(`sharp` / `fur`) | -| `DATA_DIR` | `.` | 反馈数据持久化目录 | -| `ENABLE_DOCS` | `1` | 设为 `0` 关闭 `/docs` 接口文档 | +| `DATA_DIR` | `data` | 反馈数据持久化目录 | +| `ENABLE_DOCS` | `0` | 设为 `1` 开启 `/docs` 接口文档 | ## 🛡️ 隐私与安全