Repository navigation
Expand file tree
/
Copy pathwebcodex.env.example
More file actions
48 lines (40 loc) · 2.13 KB
/
Copy pathwebcodex.env.example
File metadata and controls
48 lines (40 loc) · 2.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# WebCodex server environment file.
#
# Copy to /etc/webcodex/webcodex.env and edit:
# sudo install -d -m 0755 -o root -g root /etc/webcodex
# sudo install -m 0600 deploy/webcodex.env.example /etc/webcodex/webcodex.env
# sudo $EDITOR /etc/webcodex/webcodex.env
#
# This file is loaded by the systemd unit via EnvironmentFile=. Keep it
# chmod 0600 and owned by root — it contains the bearer token.
#
# Syntax: KEY=value (one per line). # comments and `export ` prefix allowed.
# Quoted values have their surrounding quotes stripped.
# REQUIRED (production): long random bearer token for all protected endpoints
# and the agent WebSocket/polling handshake. NEVER leave this unset in
# production — the server runs without auth when it is empty.
WEBCODEX_TOKEN=REPLACE_WITH_LONG_RANDOM_SECRET
# Bind address. Behind a reverse proxy, keep 127.0.0.1 so only the proxy is
# publicly reachable.
WEBCODEX_ADDR=127.0.0.1:8080
# Persistent runtime data dir: SQLite DB (webcodex.db) and durable runtime state.
WEBCODEX_DATA=/var/lib/webcodex
# REQUIRED (production): the public HTTPS URL. Used as servers[0].url in
# /openapi.json so ChatGPT imports actions against the right host.
WEBCODEX_PUBLIC_URL=https://webcodex.example.com
# Optional: explicit path to an env file (the server also auto-loads
# ./webcodex.env, /opt/webcodex/webcodex.env, and
# /etc/webcodex/webcodex.env if present and WEBCODEX_ENV_FILE is unset).
# WEBCODEX_ENV_FILE=/etc/webcodex/webcodex.env
# Optional MCP model surface when Connector mode is not configured. Unset (or
# local-coding-v1) uses the focused local_coding surface. The complete operator
# registry is available only through the explicit full-operator-v1 value.
# WEBCODEX_MCP_MODEL_SURFACE=local-coding-v1
# WEBCODEX_MCP_MODEL_SURFACE=full-operator-v1
# Log level. info is a good default; debug is verbose.
RUST_LOG=info
# Experimental: shrink selected GPT Action callRuntimeTool success payloads
# (notably start_coding_task) after execution. Default off — full responses.
# Does not change MCP, tools/list, OpenAPI schemas, tool execution, session
# ledger, or permission decisions.
# WEBCODEX_ACTION_COMPACT_RESPONSES=true