mirror of
https://gitee.com/mateos/mateclaw.git
synced 2026-09-13 11:13:43 +08:00
- Add Node 22/pnpm stage to mateclaw-server/Dockerfile so docker compose up -d --build produces a fully working image (the Vue SPA is now built inside the image and copied into the JAR's classpath/static). - Remove DASHSCOPE_API_KEY from .env.example and root docker-compose.yml; LLM API keys are configured post-startup via the model management UI.
31 lines
1.3 KiB
Plaintext
31 lines
1.3 KiB
Plaintext
# MateClaw 环境变量配置
|
||
# 复制此文件为 .env 并填写实际值:cp .env.example .env
|
||
#
|
||
# LLM API Key(DashScope、OpenAI 等)无需在此配置,启动后在管理界面「模型管理」中添加。
|
||
#
|
||
# ⚠️ 所有标注「必填」的项若没配置,`docker compose up` 会直接失败退出,避免把默认/示例值带到生产环境。
|
||
|
||
# ==================== 数据库(Docker 模式必填) ====================
|
||
|
||
DB_HOST=localhost
|
||
DB_PORT=3306
|
||
DB_NAME=mateclaw
|
||
DB_USERNAME=mateclaw
|
||
|
||
# ⚠️ 必填且请改成强密码(至少 16 位,含大小写+数字+符号)。
|
||
# docker-compose.yml 会通过 ${DB_PASSWORD:?} 强制要求此项。
|
||
DB_PASSWORD=change-me-strong-user-password
|
||
|
||
# ⚠️ MySQL root 账号密码,仅用于容器内初始化。请改成与 DB_PASSWORD 不同的强密码。
|
||
DB_ROOT_PASSWORD=change-me-strong-root-password
|
||
|
||
# ==================== 安全(强烈建议覆盖) ====================
|
||
|
||
# JWT 签名密钥。若留空,服务器会用内置默认值并在启动日志里 WARN。
|
||
# 生产部署必须设置,至少 32 位随机字符串:openssl rand -base64 48
|
||
JWT_SECRET=
|
||
|
||
# CORS 白名单(逗号分隔,如 https://mateclaw.example.com,https://admin.example.com)。
|
||
# 若留空,服务器会允许所有 origin 并在启动日志里 WARN。生产部署务必设置。
|
||
MATECLAW_CORS_ALLOWED_ORIGINS=
|