4e21ca937a
Deploy Documentation / deploy (push) Has been cancelled
Canary / Prepare Version (push) Has been cancelled
Canary / build-cli (push) Has been cancelled
Canary / Upload Install Script (push) Has been cancelled
Canary / bundle-desktop (push) Has been cancelled
Canary / bundle-desktop-intel (push) Has been cancelled
Canary / bundle-desktop-linux (push) Has been cancelled
Canary / bundle-desktop-windows (push) Has been cancelled
Canary / bundle-desktop-windows-cuda (push) Has been cancelled
Canary / Release (push) Has been cancelled
Unused Dependencies / machete (push) Has been cancelled
CI / changes (push) Has been cancelled
CI / Check Rust Code Format (push) Has been cancelled
CI / Build and Test Rust Project (push) Has been cancelled
CI / Build Rust Project on Windows (push) Has been cancelled
CI / Check MSRV (push) Has been cancelled
CI / Lint Rust Code (push) Has been cancelled
CI / Check Generated Schemas are Up-to-Date (push) Has been cancelled
CI / Test and Lint Electron Desktop App (push) Has been cancelled
CI / H5 Plaza Tests and Build (push) Has been cancelled
Live Provider Tests / check-fork (push) Has been cancelled
Live Provider Tests / changes (push) Has been cancelled
Live Provider Tests / Build Binary (push) Has been cancelled
Live Provider Tests / Smoke Tests (push) Has been cancelled
Live Provider Tests / Smoke Tests (Code Execution) (push) Has been cancelled
Live Provider Tests / Compaction Tests (push) Has been cancelled
Live Provider Tests / goose server HTTP integration tests (push) Has been cancelled
Publish Ask AI Bot Docker Image / docker (push) Has been cancelled
Publish Docker Image / docker (push) Has been cancelled
Scorecard supply-chain security / Scorecard analysis (push) Has been cancelled
Fork goose with custom MCP widgets, platform extensions (aider, git, web, search), MindSpace H5 backend/frontend, Plaza/Ops UIs, and deploy scripts for tkmind.cn. Co-authored-by: Cursor <cursoragent@cursor.com>
88 lines
3.7 KiB
Bash
88 lines
3.7 KiB
Bash
# TKMind H5 环境变量(复制为 .env 后按需修改)
|
||
#
|
||
# 本地开发(默认只做本地,不自动发布生产):
|
||
# 1. pnpm dev # 热更新 (http://127.0.0.1:5173)
|
||
# 2. pnpm run test:local # 生产构建本地跑 (http://127.0.0.1:8081)
|
||
# 3. pnpm run test:fruit-john-e2e # john 水果主题:预览图 + 可点击链接 + 我的空间
|
||
# 4. node scripts/mindspace-rebuild-thumbnails.mjs # 批量重建预览图(可选)
|
||
#
|
||
# 发布生产:仅当明确要求「发布生产」时再执行:
|
||
# pnpm run deploy:105 或 pnpm run deploy:prod 或 ./rsync_to_server.sh
|
||
# 105 配置见 deploy/h5-105.env.example
|
||
#
|
||
# 后端代理(server.mjs / vite dev proxy 共用)
|
||
TKMIND_API_TARGET=https://127.0.0.1:18006
|
||
TKMIND_SERVER__SECRET_KEY=local-dev-secret
|
||
H5_PORT=8081
|
||
# Agent 生成链接用(本地开发建议 8081;生产再改为 https://goo.tkmind.cn)
|
||
H5_PUBLIC_BASE_URL=http://127.0.0.1:8081
|
||
|
||
# 多用户系统(MySQL 配置后启用;未配置时回退到 H5_ACCESS_PASSWORD)
|
||
DATABASE_URL=mysql://boot:password@localhost:3306/tkmind
|
||
# 或分别设置 MYSQL_HOST / MYSQL_PORT / MYSQL_USER / MYSQL_PASSWORD / MYSQL_DATABASE
|
||
H5_USERS_ROOT=/root/tkmind_go/users
|
||
H5_SIGNUP_BALANCE_CENTS=1000
|
||
H5_ADMIN_USERNAME=admin
|
||
H5_ADMIN_PASSWORD=change-me-admin
|
||
# LLM Key 数据库加密(可选;默认派生自 TKMIND_SERVER__SECRET_KEY)
|
||
# H5_SETTINGS_ENCRYPTION_KEY=change-me-encryption-key
|
||
# 启动时自动导入 Relay(若不存在同名配置)
|
||
# H5_RELAY_BOOTSTRAP_NAME=Relay Buyer Ollama
|
||
# H5_RELAY_BOOTSTRAP_URL=http://127.0.0.1:18300/relay/buyer/v1/chat/completions
|
||
# H5_RELAY_BOOTSTRAP_API_KEY=your-bearer-token
|
||
# H5_RELAY_BOOTSTRAP_MODEL=qwen2.5:3b
|
||
# H5_RELAY_BOOTSTRAP_MODELS=qwen2.5:3b,llama3.2:1b
|
||
# H5_RELAY_BOOTSTRAP_PROVIDER=ollama
|
||
|
||
# 旧版单密码门(仅当未配置 MySQL 时生效)
|
||
H5_ACCESS_PASSWORD=change-me
|
||
|
||
# 计费(Phase 2)
|
||
# H5_USE_BACKEND_COST=1 # 优先用后端 accumulatedCost(USD)计费
|
||
# H5_USD_CNY_RATE=7.2
|
||
# H5_BILL_INPUT_CENTS_PER_1K=2
|
||
# H5_BILL_OUTPUT_CENTS_PER_1K=6
|
||
# H5_MIN_BILL_CENTS=1
|
||
|
||
# 用户自助充值(微信支付 v3)
|
||
# H5_RECHARGE_TIERS_CENTS=500,1000,3000,5000,10000,20000
|
||
# H5_MIN_RECHARGE_CENTS=500
|
||
# H5_RECHARGE_ORDER_TTL_MS=900000
|
||
# H5_RECHARGE_MAX_PENDING=3
|
||
# H5_RECHARGE_DAILY_LIMIT_CENTS=200000
|
||
# H5_WECHAT_PAY_ENABLED=1
|
||
# H5_WECHAT_APP_ID=wx...
|
||
# H5_WECHAT_MCH_ID=1...
|
||
# H5_WECHAT_API_V3_KEY=32位APIv3密钥
|
||
# H5_WECHAT_SERIAL_NO=商户API证书序列号
|
||
# H5_WECHAT_PRIVATE_KEY_PATH=/path/to/apiclient_key.pem
|
||
# 或直接内联 PEM(\n 转义):
|
||
# H5_WECHAT_PRIVATE_KEY="-----BEGIN PRIVATE KEY-----\n...\n-----END PRIVATE KEY-----"
|
||
# H5_WECHAT_PLATFORM_CERT_PATH=/path/to/wechatpay_platform.pem
|
||
# H5_WECHAT_PLATFORM_CERT="-----BEGIN CERTIFICATE-----\n...\n-----END CERTIFICATE-----"
|
||
# H5_WECHAT_NOTIFY_URL=https://goo.tkmind.cn/webhooks/wechat-pay/notify
|
||
# 本地调试验签可临时开启(生产务必关闭):
|
||
# H5_WECHAT_SKIP_NOTIFY_VERIFY=0
|
||
|
||
# 本地开发:pnpm dev 会自动启动 server.mjs + vite
|
||
# 若只跑前端:pnpm dev:vite(需另开 pnpm dev:server)
|
||
# H5_DEV_PORTAL=http://127.0.0.1:8081
|
||
|
||
# 前端构建时注入(Vite,需 VITE_ 前缀)
|
||
# 工作目录:新建会话时使用,必填
|
||
VITE_TKMIND_WORKING_DIR=/Users/john/PycharmProjects/tkmind
|
||
|
||
# 可选:覆盖默认 provider / model(未设置则从服务端 config 读取)
|
||
# VITE_TKMIND_PROVIDER=openai
|
||
# VITE_TKMIND_MODEL=gpt-4o
|
||
|
||
# 可选:harness recall 的默认查询
|
||
# VITE_TKMIND_MEMORY_QUERY=project architecture conventions current goals decisions risks and recent work
|
||
|
||
# 历史列表每次展示/加载条数(默认 25,与 desktop 一致)
|
||
# VITE_SESSION_PAGE_SIZE=25
|
||
|
||
# Plaza 发现广场(Sprint 1)
|
||
# PLAZA_AUTO_APPROVE=true
|
||
# VITE_PLAZA_BASE=http://localhost:3001
|