fix(install): remove published gateway token placeholder

Co-authored-by: opencode <opencode@users.noreply.github.com>
This commit is contained in:
Coy Geek
2026-04-17 17:42:25 -07:00
committed by Peter Steinberger
parent 1a7d89e85b
commit 960bc52e3c
3 changed files with 20 additions and 2 deletions

View File

@@ -213,7 +213,7 @@ For the generic Docker flow, see [Docker](/install/docker).
```bash
OPENCLAW_IMAGE=openclaw:latest
OPENCLAW_GATEWAY_TOKEN=change-me-now
OPENCLAW_GATEWAY_TOKEN=
OPENCLAW_GATEWAY_BIND=lan
OPENCLAW_GATEWAY_PORT=18789

View File

@@ -134,7 +134,7 @@ For the generic Docker flow, see [Docker](/install/docker).
```bash
OPENCLAW_IMAGE=openclaw:latest
OPENCLAW_GATEWAY_TOKEN=change-me-now
OPENCLAW_GATEWAY_TOKEN=
OPENCLAW_GATEWAY_BIND=lan
OPENCLAW_GATEWAY_PORT=18789

View File

@@ -0,0 +1,18 @@
import fs from "node:fs/promises";
import path from "node:path";
import { describe, expect, it } from "vitest";
const INSTALL_DOCS_DIR = path.join(process.cwd(), "docs", "install");
const CLOUD_INSTALL_DOCS = ["gcp.md", "hetzner.md"] as const;
describe("cloud install docs", () => {
it("does not publish a copy-paste gateway token placeholder", async () => {
for (const docName of CLOUD_INSTALL_DOCS) {
const markdown = await fs.readFile(path.join(INSTALL_DOCS_DIR, docName), "utf8");
expect(markdown).not.toContain("OPENCLAW_GATEWAY_TOKEN=change-me-now");
expect(markdown).toMatch(/OPENCLAW_GATEWAY_TOKEN=[ \t]*\r?\n/);
expect(markdown).toContain("openssl rand -hex 32");
}
});
});