Files
2026-09-21 11:19:07 +08:00

32 lines
1.4 KiB
Bash
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# ============================================================
# Hunjing 环境变量示例(复制为 .env 后按需修改;不要提交 .env)
# ============================================================
# 运行环境:development / staging / production
HUNJING_ENV=development
# 数据库(PostgreSQL 统一,ADR-024;默认连接 docker-compose 启动的 hunjing-postgres)
# 注意:后端 Settings 统一 HUNJING_ 前缀读取,无前缀的 DATABASE_URL 不会生效
HUNJING_DATABASE_URL=postgresql+asyncpg://hunjing:hunjing_dev_password@127.0.0.1:5432/hunjing
# 后端服务端口
HUNJING_API_PORT=8000
# 对象存储根目录(本地存储档;上传与媒体文件落位)
HUNJING_STORAGE_ROOT=storage
# 沙箱隔离开关:未启用时隔离插件执行 fail-closed(拒绝执行,不回退宿主)
HUNJING_SANDBOX_ENABLED=false
# 日志级别:debug / info / warning / error
HUNJING_LOG_LEVEL=info
# 注意:密钥、Provider 凭据等敏感值只通过环境变量或秘密管理注入,
# 不写入本文件、config/ 真实配置或任何日志。
# 开发档管理员邮箱白名单(逗号分隔):命中邮箱首次登录(建户)即为 admin 角色;
# 例:HUNJING_DEV_ADMIN_EMAILS=admin@hunjing.dev
# 开发档 Mock 模型密钥(make mock-model + backend-dev 联调 Run 流水线)
HUNJING_DEV_ADMIN_EMAILS=
HUNJING_DEV_MOCK_KEY=