Files
HealthCarePregnant/pcm-platform/backend/.env.example
T
2026-06-18 09:48:05 +08:00

22 lines
921 B
Bash
Raw 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.
# PCM 后端环境变量示例(复制为 .env 后填写真实值,勿提交 .env)
PORT=3000
# 鉴权令牌签名密钥(生产必须为强随机值,支持轮换;勿用默认值)
AUTH_SECRET=change-me-to-a-strong-random-secret
# 数据库(PostgreSQL)。
# - 不设置 → 后端使用内存仓储(dev/测试,重启数据丢失)。
# - 设置 → 启用持久化(启动时幂等建表)。本地示例:
# DATABASE_URL=postgresql://postgres:postgres@127.0.0.1:5432/pcm
# 字段级加密密钥(AES-256-GCM32 字节;hex64 或 base64)。
# 生产经 KMS/Secrets 注入并轮换;用于迁移 patient/observation 等敏感字段。
# 生成示例:node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"
# FIELD_ENCRYPTION_KEY=
# 大模型 / RAG(按所选服务填写)
LLM_API_KEY=
LLM_API_BASE=
# 注意:密钥类变量仅放入本地 .env,不得提交仓库