Skip to content
Merged
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
197 changes: 14 additions & 183 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions ENV.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ These variables are for local repo tooling and development workflows. They are n
| `SERVERBEE_LOG__LEVEL` | `log.level` | string | `info` | Log level: `trace`, `debug`, `info`, `warn`, `error` |
| `SERVERBEE_LOG__FILE` | `log.file` | string | `""` | Log file path. Empty means stdout only |

### Development Only

| Environment Variable | TOML Key | Type | Default | Description |
|---------------------|----------|------|---------|-------------|
| `SERVERBEE_DEV__DEMO_DATA` | `dev.demo_data` | bool | `false` | Reset and seed the local synthetic demo dataset. Only allowed when `database.path = "dev-demo.db"`; creates `admin` / `admin123` and in-memory demo agents for local development |

### OAuth (Optional)

| Environment Variable | TOML Key | Type | Default | Description |
Expand Down
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ COMMAND_TARGETS := \
server-dev-prod \
agent-dev \
dev-full \
dev-demo \
server-dev-demo \
docker-build \
docker-up \
docker-down \
Expand Down
12 changes: 12 additions & 0 deletions apps/docs/content/docs/cn/configuration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ ServerBee 使用 [figment](https://github.com/SergioBenitez/Figment) 库加载
| `SERVERBEE_LOG__LEVEL` | `info` | 日志级别:`trace`/`debug`/`info`/`warn`/`error` |
| `SERVERBEE_LOG__FILE` | `""` | 日志文件路径,留空输出到 stdout |

#### 仅本地开发

| 环境变量 | 默认值 | 说明 |
|----------|--------|------|
| `SERVERBEE_DEV__DEMO_DATA` | `false` | 重置并写入本地合成 demo 数据集。仅允许与 `SERVERBEE_DATABASE__PATH=dev-demo.db` 一起使用;会创建 `admin` / `admin123` 并启动内存中的 demo agents |

#### OAuth(按需配置)

| 环境变量 | 默认值 | 说明 |
Expand Down Expand Up @@ -266,6 +272,12 @@ session_ttl = 86400
# 默认: 0
max_servers = 0

# --- 本地开发 ---
[dev]
# 重置并写入合成 demo 数据。仅允许 database.path = "dev-demo.db"。
# 默认: false
demo_data = false

# --- 速率限制 ---
[rate_limit]
# 登录接口速率限制:每 IP 每分钟最大请求数
Expand Down
Loading
Loading