chore(hindsight): 更新PG认证及环境变量配置

- 添加 scram-sha-256 认证方式及初始化参数
- 新增 DB 端口和 dataplane API URL 变量
- 移除 huggingface 缓存卷挂载
- 修正 LLM provider 值为小写 minimax
This commit is contained in:
cnphpbb
2026-06-08 05:29:09 +08:00
parent 9c3a39f25c
commit ec2ce60776
2 changed files with 8 additions and 4 deletions

View File

@@ -14,6 +14,7 @@ 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/
@@ -21,11 +22,13 @@ HINDSIGHT_DB_NAME=hindsight_db
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-CN
HINDSIGHT_API_LLM_PROVIDER=minimax
HINDSIGHT_API_LLM_MODEL=MiniMax-M3
HINDSIGHT_API_LLM_BASE_URL=https://api.minimaxi.com/v1
@@ -34,6 +37,7 @@ HINDSIGHT_API_LOG_LEVEL=info
# ============================================================
# 敏感值必填env.cfg 不提交)— 在 .gitignore 已忽略
# PostgreSQL 密码 最好不要带特殊字符
# ============================================================
# HINDSIGHT_DB_PASSWORD=<强密码>
# HINDSIGHT_API_LLM_API_KEY=<你的 MiniMax key>