From b671b0d72566d762b1a0c305a25b5ba825dd7e13 Mon Sep 17 00:00:00 2001 From: zhayujie Date: Sat, 30 May 2026 17:18:31 +0800 Subject: [PATCH] docs: add web file serve root config --- docs/channels/web.mdx | 1 + docs/en/channels/web.mdx | 1 + docs/ja/channels/web.mdx | 1 + 3 files changed, 3 insertions(+) diff --git a/docs/channels/web.mdx b/docs/channels/web.mdx index 30bea09b..810da3da 100644 --- a/docs/channels/web.mdx +++ b/docs/channels/web.mdx @@ -24,6 +24,7 @@ Web 控制台是 CowAgent 的默认通道,启动后会自动运行,通过浏 | `web_port` | Web 服务监听端口 | `9899` | | `web_password` | 访问密码,留空表示不启用密码保护;监听 `0.0.0.0` 时建议设置 | `""` | | `web_session_expire_days` | 登录会话有效天数 | `30` | +| `web_file_serve_root` | web 端可直接读取/发送的文件根目录,默认仅限用户主目录及 agent 工作空间;设为 `/` 可放开整个文件系统 | `"~"` | | `enable_thinking` | 是否启用深度思考模式 | `false` | 配置密码后,访问控制台时需先输入密码完成登录。登录状态默认保持 30 天,期间重启服务也无需重新登录。密码也支持在控制台的「配置」页面中在线修改。 diff --git a/docs/en/channels/web.mdx b/docs/en/channels/web.mdx index a2a39c72..97c43077 100644 --- a/docs/en/channels/web.mdx +++ b/docs/en/channels/web.mdx @@ -24,6 +24,7 @@ The Web Console is CowAgent's default channel. It runs automatically once starte | `web_port` | Web service listen port | `9899` | | `web_password` | Access password. Leave empty to disable password protection; recommended when listening on `0.0.0.0` | `""` | | `web_session_expire_days` | Login session validity in days | `30` | +| `web_file_serve_root` | Root directory the web console can directly read/send files from. Defaults to the user home dir and agent workspace only; set to `/` to allow the whole filesystem | `"~"` | | `enable_thinking` | Whether to enable deep thinking mode | `false` | Once a password is configured, you must enter it to log in when accessing the console. The login session is kept for 30 days by default, so restarting the service during that period does not require re-login. The password can also be changed online from the "Configuration" page in the console. diff --git a/docs/ja/channels/web.mdx b/docs/ja/channels/web.mdx index 922627fc..a044697b 100644 --- a/docs/ja/channels/web.mdx +++ b/docs/ja/channels/web.mdx @@ -24,6 +24,7 @@ Web コンソールは CowAgent のデフォルトチャネルです。起動後 | `web_port` | Web サービスのリスンポート | `9899` | | `web_password` | アクセスパスワード。空欄の場合はパスワード保護が無効。`0.0.0.0` でリスンする場合は設定を推奨 | `""` | | `web_session_expire_days` | ログインセッションの有効日数 | `30` | +| `web_file_serve_root` | web コンソールが直接読み取り/送信できるファイルのルートディレクトリ。デフォルトはユーザーのホームディレクトリと agent ワークスペースのみ。`/` に設定するとファイルシステム全体を許可 | `"~"` | | `enable_thinking` | 深い思考モードを有効化するか | `false` | パスワード設定後、コンソールへアクセスする際にはまずパスワード入力によるログインが必要です。ログイン状態はデフォルトで 30 日間保持され、その間はサービスを再起動しても再ログインは不要です。パスワードはコンソールの「設定」ページからオンラインで変更することもできます。