Skip to content

Commit c2e8b09

Browse files
committed
docs: clarify that /api/config does not persist api_token
The previous wording suggested operators could let the server write the token via /api/config, but ConfigService.saveConfig() only writes watchdog fields and would actually clobber an existing api_token in server_config.json. Spell out that the file must be edited directly. https://claude.ai/code/session_01WjsbdUtxDJZL3GaAvhyzav
1 parent e0304fe commit c2e8b09

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

docs/docs/setup.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,8 @@ to configure the value, in priority order:
303303
a non-empty token.
304304
2. **`api_token` field in `app/server_config.json`** — the persisted file
305305
bind-mounted by `docker-compose.yml`. Used when `API_TOKEN` is absent.
306-
Edit it directly or let the server write it via `/api/config`.
306+
Edit the file directly; the dashboard's `/api/config` endpoint only
307+
manages watchdog settings and does not write the token.
307308

308309
Generate a fresh token with `openssl rand -hex 32`. The dashboard prompts
309310
for it on first load (and any time the server returns 401); paste the

0 commit comments

Comments
 (0)