Files
antiwear-gateway/.env.example
ZF sun 7d07eee2be feat: 添加数字人对接中转服务 Docker Compose 部署方案
- digital-human: FastAPI 中转服务,连接客户端与 Dify LLM 平台
- Redis: 容器内缓存,支持请求体哈希缓存(300s TTL)
- 支持通过 DH_PORT 自定义宿主机映射端口
- Redis 默认不暴露端口,通过 docker-compose.redis-expose.yml 按需开启
- 显式声明 digital-human-net 网络,容器间通过内部 DNS 互通
- 修复 redis.ConnectionError 导入路径(使用 redis.exceptions)
- Dockerfile pip 安装回退机制,避免镜像源不可用时构建失败
- 新增 .gitignore 防止 .env 密钥泄露
2026-04-22 14:24:59 +08:00

22 lines
774 B
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.
# ============================================================
# 数字人对接中转服务 - 环境变量配置
# 复制此文件为 .env 并填写实际值
# ============================================================
# Dify 服务地址(必填)
# 例如:https://atwdify.antiwearvalve.com/v1
DIFY_URL=https://your-dify-domain.com/v1
# Dify API 密钥(必填)
# 例如:app-PDkSHiHZsZIluoZF7N2OlNZM
DIFY_API_KEY=app-xxxxxxxxxxxxxxxxxxxx
# 服务端口(可选,默认为 8000)
DH_PORT=8000
# Redis 暴露配置(可选,默认为空 = 不暴露)
# 设置非空值时启用 docker-compose.redis-expose.yml 覆盖配置
# 示例:REDIS_EXPOSE_PORT=6379
# 通常不需要设置,Redis 默认仅在容器网络内部可用
# REDIS_EXPOSE_PORT=6379