chore: add .env.example config template with all options

- Full config template with comments for every setting
- start.sh auto-loads .env if present
- Covers: LLM, DB, Auth, IoT, Voice, Platform Bridge, Search, CORS, WS
This commit is contained in:
Aska committed 2026-08-12 17:46:23 +08:00
1 parent 2a23ecdbdb
commit 217319eabc
2 files changed
+92

No files matched your search

+8
View File
@@ -6,6 +6,14 @@ cd "$(dirname "$0")"
# Cyrene v2 — 一键启动脚本
# ============================================
# 自动加载 .env(如果存在)
if [ -f .env ]; then
set -a; source .env; set +a
echo "[cyrene] 已加载 .env 配置"
else
echo "[cyrene] 未找到 .env,使用默认值。可复制 .env.example: cp .env.example .env"
fi
# 默认环境变量(可通过 .env 或命令行覆盖)
export LLM_API_KEY="${LLM_API_KEY:-sk-test}"
export JWT_SECRET="${JWT_SECRET:-cyrene-v2-dev-secret-key-32bytes!!}"