Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 3 additions & 3 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -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` 接口文档 |

## 🛡️ 隐私与安全

Expand Down