mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 07:10:43 +00:00
fix(install): remove published gateway token placeholder
Co-authored-by: opencode <opencode@users.noreply.github.com>
This commit is contained in:
committed by
Peter Steinberger
parent
1a7d89e85b
commit
960bc52e3c
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
18
src/docs/install-cloud-secrets.test.ts
Normal file
18
src/docs/install-cloud-secrets.test.ts
Normal 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");
|
||||
}
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user