fix: reset ssrf whitelist on config reload and document config refresh

This commit is contained in:
Xubin Ren
2026-04-04 19:43:18 +08:00
committed by Xubin Ren
parent 5f08d61d8f
commit 9ef5b1e145
3 changed files with 49 additions and 3 deletions
+15
View File
@@ -856,6 +856,11 @@ Simply send the command above to your nanobot (via CLI or any chat channel), and
Config file: `~/.nanobot/config.json`
> [!NOTE]
> If your config file is older than the current schema, you can refresh it without overwriting your existing values:
> run `nanobot onboard`, then answer `N` when asked whether to overwrite the config.
> nanobot will merge in missing default fields and keep your current settings.
### Providers
> [!TIP]
@@ -1235,6 +1240,16 @@ By default, web tools are enabled and web search uses `duckduckgo`, so search wo
If you want to disable all built-in web tools entirely, set `tools.web.enable` to `false`. This removes both `web_search` and `web_fetch` from the tool list sent to the LLM.
If you need to allow trusted private ranges such as Tailscale / CGNAT addresses, you can explicitly exempt them from SSRF blocking with `tools.ssrfWhitelist`:
```json
{
"tools": {
"ssrfWhitelist": ["100.64.0.0/10"]
}
}
```
| Provider | Config fields | Env var fallback | Free |
|----------|--------------|------------------|------|
| `brave` | `apiKey` | `BRAVE_API_KEY` | No |