Files
GoClaw/.env.example
¨NW¨ 322cebf475 fix(prod): production startup fixes — health endpoint, serveStatic path, entrypoint, docker config
- Add /api/health endpoint for Docker healthchecks
- Fix serveStatic path: dist/public instead of ../public
- Fix entrypoint.sh: DB wait check, npx drizzle-kit migrate, add netcat
- Fix Dockerfile: add bash/netcat, fix COPY order, add tsconfig.node.json
- Fix docker-compose.yml: add OLLAMA/LLM env vars for Node.js fallback
- Fix docker-stack.yml: remove template vars, use env vars instead of secrets
- Fix drizzle.config.ts: add migrations prefix
- Update .env.example with full LLM provider documentation
2026-04-08 23:09:28 +01:00

43 lines
1.8 KiB
Plaintext

# ─────────────────────────────────────────────
# GoClaw Control Center — Environment Variables
# Скопируйте этот файл в .env и заполните значения
# ─────────────────────────────────────────────
# ── LLM Provider ───────────────────────────────
# Option 1: Ollama Cloud (default)
LLM_BASE_URL=https://ollama.com/v1
LLM_API_KEY=your_api_key_here
# Option 2: Direct Ollama (legacy aliases)
OLLAMA_BASE_URL=https://ollama.com/v1
OLLAMA_API_KEY=
# Option 3: OpenAI-compatible
# LLM_BASE_URL=https://api.openai.com/v1
# LLM_API_KEY=sk-...
# Default model for orchestrator (when DB config unavailable)
DEFAULT_MODEL=qwen2.5:7b
# ── Database ───────────────────────────────────
# MySQL/TiDB connection string
DATABASE_URL=mysql://goclaw:goClawPass123@localhost:3306/goclaw
# ── Authentication ─────────────────────────────
# JWT Secret — generate: openssl rand -hex 32
JWT_SECRET=change_me_to_a_random_64_char_string
# ── GoClaw Gateway ─────────────────────────────
# URL of the Go Gateway (blank = fallback to Node.js orchestrator)
GATEWAY_URL=http://localhost:18789
# ── Manus OAuth (optional) ─────────────────────
VITE_APP_ID=
OAUTH_SERVER_URL=
VITE_OAUTH_PORTAL_URL=
# ── Manus Built-in APIs (optional) ─────────────
BUILT_IN_FORGE_API_URL=
BUILT_IN_FORGE_API_KEY=
VITE_FRONTEND_FORGE_API_KEY=
VITE_FRONTEND_FORGE_API_URL=