docs: add web file serve root config

This commit is contained in:
zhayujie
2026-05-30 17:18:31 +08:00
parent aa3f48e93c
commit b671b0d725
3 changed files with 3 additions and 0 deletions

View File

@@ -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.