docs(ocm): refresh env and CLI guides and redact internal settings secrets

This commit is contained in:
Chris Scott committed 2026-10-07 22:17:46 -04:00
1 parent 4553af41dc
commit 4b6df6cf5f
9 files changed
+178 -57

No files matched your search

+26 -5
View File
@@ -7,6 +7,7 @@
# ============================================
PORT=5003
HOST=0.0.0.0
# CORS_ORIGIN is accepted but currently unused; CORS follows AUTH_TRUSTED_ORIGINS
CORS_ORIGIN=http://localhost:5173
NODE_ENV=production
# LOG_LEVEL is accepted but currently unused; DEBUG controls debug output
@@ -18,6 +19,15 @@ LOG_LEVEL=info
OPENCODE_SERVER_PORT=5551
OPENCODE_HOST=127.0.0.1
# Optional - OpenCode health watcher and automatic recovery
# OPENCODE_HEALTH_WATCH_ENABLED=true
# OPENCODE_HEALTH_POLL_MS=30000
# OPENCODE_HEALTH_FAILURE_THRESHOLD=2
# Optional - path to an externally managed OpenCode binary. While set, in-app
# upgrade and version install are disabled.
# OPENCODE_BIN=
# Optional - Basic Auth password for the managed OpenCode server.
# OpenCode 2 always requires a password: when this is unset and no password is
# stored via Settings → OpenCode → Server Auth, OpenCode Manager generates one
@@ -41,6 +51,10 @@ DATABASE_PATH=./data/opencode.db
# ============================================
WORKSPACE_PATH=./workspace
# Optional - root directory the server-side folder browser may browse. When
# unset, folder browsing is disabled. Supports ~.
# REPO_BROWSE_ROOT=~/Development
# Optional - Docker: bind /workspace to a host directory instead of the named
# volume, and run the container as your host user so the files stay usable from
# the host without root. Set PUID/PGID to the output of `id -u` / `id -g`.
@@ -109,13 +123,17 @@ DEBUG=false
# DISCORD_CLIENT_SECRET=
# Passkey/WebAuthn Configuration
# PASSKEY_ORIGIN must equal the origin in the browser address bar. pnpm dev
# serves the page from Vite (5173); Docker and production builds use 5003.
PASSKEY_RP_ID=localhost
PASSKEY_RP_NAME=OpenCode Manager
PASSKEY_ORIGIN=http://localhost:5003
PASSKEY_ORIGIN=http://localhost:5173
# ============================================
# Preview Gateway
# ============================================
# Port for the preview gateway. Set to 0 to disable preview.
# PREVIEW_PORT=5004
# Public HTTPS origin of the preview gateway (port 5004). Required when the
# Manager is served over HTTPS, for example through a Cloudflare Tunnel.
# Use a separate hostname on the same domain as the Manager, and never add it
@@ -153,15 +171,18 @@ PASSKEY_ORIGIN=http://localhost:5003
# ============================================
# OCI image the microVM boots from. The default ships gh, a Playwright Chromium,
# and the node:24 toolchain; any image you point this at must contain every tool
# the agent expects to run and a shell at /bin/sh.
# SANDBOX_IMAGE=docker.io/cstechdev/ocm-sandbox:latest
# the agent expects to run and a shell at /bin/sh. The default is pinned by
# digest so a rebuilt guest image is actually adopted; a :tag may not pick up a
# rebuilt image.
# SANDBOX_IMAGE=docker.io/cstechdev/ocm-sandbox@sha256:<digest>
# MicroVM memory (e.g. 4G)
# SANDBOX_MEMORY=4G
# MicroVM CPU count
# SANDBOX_CPUS=2
# Guest identity sandboxed commands run as: a numeric uid, a numeric uid:gid,
# or a guest username. Defaults to PUID so the guest identity always matches
# the workspace owner; a guest username is resolved to the Manager's uid:gid.
# or a guest username. Unset, it is node, which is resolved to the Manager's
# own uid:gid like any guest username; the sandbox compose overlay defaults it
# to PUID so the guest identity matches the workspace owner.
# When a configured numeric identity cannot match the workspace owner,
# enforcement is reported unavailable.
# SANDBOX_EXEC_USER=${PUID:-1000}