Mirror to GitHub / mirror (push) Canceled after 0s
- api: /chat route runs runAgent (session-required, 503 when unconfigured) - api: index.ts builds OpenRouterLlmClient + WpRestExecutor from env; loads .env - web: useChat calls /chat with mock fallback; proxy /chat+/sites+/health - .env.example: DATABASE_URL empty by default (in-memory dev) - 111 unit tests green; smoke-tested signup+chat
29 lines
774 B
Bash
29 lines
774 B
Bash
# Copy to .env. Never commit real values.
|
|
|
|
# API
|
|
PORT=3000
|
|
# Set DATABASE_URL only when Postgres is running (see infrastructure/DEVOPS.md).
|
|
# Leave empty for the in-memory dev store.
|
|
DATABASE_URL=
|
|
REDIS_URL=redis://localhost:6379
|
|
|
|
# Auth
|
|
SESSION_SECRET=replace-me
|
|
|
|
# LLM — Grok is the default adapter. Switch provider with LLM_PROVIDER (grok | openrouter).
|
|
LLM_PROVIDER=grok
|
|
XAI_API_KEY=
|
|
OPENROUTER_API_KEY=
|
|
# Model sent when LLM_PROVIDER=openrouter (default x-ai/grok-4.6).
|
|
OPENROUTER_MODEL=x-ai/grok-4.6
|
|
LLM_FALLBACK_PROVIDER=
|
|
|
|
# Sandbox
|
|
DOCKER_HOST=
|
|
# Set to 1 to enable sandbox spin-up via Docker (leave unset to return 503 on /sessions).
|
|
WUR_ENABLE_SANDBOX=
|
|
WUR_IMAGE=wursor-base:latest
|
|
WUR_WEB_PORT=8080
|
|
PREVIEW_BASE_URL=http://localhost:8080
|
|
WARM_POOL_HOT_SPARES=2
|