Files
deploy.stack/hindsight/env.cfg.example
cnphpbb cd03ec9b84 chore(hindsight): 更新PG认证及环境变量配置
- 添加 scram-sha-256 认证方式及初始化参数
- 新增 DB 端口和 dataplane API URL 变量
- 移除 huggingface 缓存卷挂载
- 修正 LLM provider 值为小写 minimax
2026-06-08 05:29:09 +08:00

44 lines
1.5 KiB
Plaintext
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.
# ============================================================
# Hindsight 部署 — 公共环境变量(不含敏感信息)
# 复制为 env.cfg 后填入真实值env.cfg 已被 .gitignore 忽略
# ============================================================
# 镜像版本
HINDSIGHT_VERSION=latest
HINDSIGHT_DB_VERSION=18
# 镜像源
HINDSIGHT_DB_IMAGE=pgvector/pgvector
HINDSIGHT_APP_IMAGE=ghcr.nju.edu.cn/vectorize-io/hindsight
# 数据库账号/库名
HINDSIGHT_DB_USER=hindsight_user
HINDSIGHT_DB_NAME=hindsight_db
POSTGRES_HOST_AUTH_METHOD=scram-sha-256
# 宿主机数据卷路径(**必须 WSL/Linux ext4 原生 fs**,不能放 /mnt/9P
# bind 挂载 PostgreSQL 数据;放在 ~/hindsight/pgdata 而非 /mnt/d/mydata/
# 因为 9P drvfs 的 fsync 不可靠,会导致 PG 数据损坏。
Volumes_Path=/data/Volumes/hindsight
# 服务端口(宿主机:容器)
HINDSIGHT_DB_PORT=5432
HINDSIGHT_API_PORT=8888
HINDSIGHT_ADMIN_PORT=9999
HINDSIGHT_CP_DATAPLANE_API_URL=http://0.0.0.0:8888
# LLMMiniMax OpenAI-compatible 协议)
HINDSIGHT_API_LLM_PROVIDER=minimax
HINDSIGHT_API_LLM_MODEL=MiniMax-M3
HINDSIGHT_API_LLM_BASE_URL=https://api.minimaxi.com/v1
# 日志
HINDSIGHT_API_LOG_LEVEL=info
# ============================================================
# 敏感值必填env.cfg 不提交)— 在 .gitignore 已忽略
# PostgreSQL 密码 最好不要带特殊字符
# ============================================================
# HINDSIGHT_DB_PASSWORD=<强密码>
# HINDSIGHT_API_LLM_API_KEY=<你的 MiniMax key>