From 4d2d02e59cf5da627b4de12dc49a287cec5fc59f Mon Sep 17 00:00:00 2001 From: GatewayJ <835269233@qq.com> Date: Wed, 18 Mar 2026 22:39:02 +0800 Subject: [PATCH] docs: oxfmt table alignment and single-line paragraphs Made-with: Cursor --- docs/gateway/configuration.md | 22 ++++++++-------------- docs/help/environment.md | 3 +-- 2 files changed, 9 insertions(+), 16 deletions(-) diff --git a/docs/gateway/configuration.md b/docs/gateway/configuration.md index a05f503c26f..23599d3f611 100644 --- a/docs/gateway/configuration.md +++ b/docs/gateway/configuration.md @@ -633,21 +633,15 @@ You can load configuration from [Nacos](https://nacos.io/) instead of a local fi Set these environment variables: -| Variable | Required | Purpose | -| -------- | -------- | ------- | -| `OPENCLAW_CONFIG_SOURCE` | Yes | Set to `nacos` to use Nacos; omit or set to `file` for the default file-based config. | -| `NACOS_SERVER_ADDR` | Yes | Nacos server address (e.g. `http://nacos:8848`). | -| `NACOS_DATA_ID` | Yes | Data ID of the config (e.g. `openclaw.json`). | -| `NACOS_GROUP` | No | Nacos group (default: `DEFAULT_GROUP`). | -| `NACOS_NAMESPACE` | No | Nacos namespace (tenant); omit for default namespace. | +| Variable | Required | Purpose | +| ------------------------ | -------- | ----------------------------------------------------------------------- | +| `OPENCLAW_CONFIG_SOURCE` | Yes | Set to `nacos` to use Nacos; omit or set to `file` for the default file-based config. | +| `NACOS_SERVER_ADDR` | Yes | Nacos server address (e.g. `http://nacos:8848`). | +| `NACOS_DATA_ID` | Yes | Data ID of the config (e.g. `openclaw.json`). | +| `NACOS_GROUP` | No | Nacos group (default: `DEFAULT_GROUP`). | +| `NACOS_NAMESPACE` | No | Nacos namespace (tenant); omit for default namespace. | -When `OPENCLAW_CONFIG_SOURCE=nacos`, the gateway fetches the config from Nacos at -startup. No config file is written on disk; the in-memory config is updated by -Nacos long-polling. Hot reload is driven by Nacos (changes in Nacos are applied -without restart). Config read RPC (`config.get`) uses the in-memory config. Config -write RPC (`config.apply`, `config.patch`) and CLI `config set` update only the -in-memory snapshot (no write to disk or to Nacos). To change config persistently -when using Nacos, update the config in Nacos and rely on hot reload. +When `OPENCLAW_CONFIG_SOURCE=nacos`, the gateway fetches the config from Nacos at startup. No config file is written on disk; the in-memory config is updated by Nacos long-polling. Hot reload is driven by Nacos (changes in Nacos are applied without restart). Config read RPC (`config.get`) uses the in-memory config. Config write RPC (`config.apply`, `config.patch`) and CLI `config set` update only the in-memory snapshot (no write to disk or to Nacos). To change config persistently when using Nacos, update the config in Nacos and rely on hot reload. See [Environment](/help/environment#config-source-nacos) for these variables in the env reference. diff --git a/docs/help/environment.md b/docs/help/environment.md index 7a33d55fdf5..51aae1948df 100644 --- a/docs/help/environment.md +++ b/docs/help/environment.md @@ -121,8 +121,7 @@ When loading config from Nacos instead of a local file (e.g. in Kubernetes pods | `NACOS_GROUP` | No | Nacos group (default: `DEFAULT_GROUP`). | | `NACOS_NAMESPACE` | No | Nacos namespace (tenant); omit for default namespace. | -Config is kept only in memory; hot reload is driven by Nacos long-polling. See -[Configuration: Config source: Nacos](/gateway/configuration#config-source-nacos). +Config is kept only in memory; hot reload is driven by Nacos long-polling. See [Configuration: Config source: Nacos](/gateway/configuration#config-source-nacos). ## Logging