Files
QuestionProject/ai_knowledge_base_v2/.env.example

39 lines
1.6 KiB
Plaintext
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.
# ============================================
# 飞书知识库配置
# ============================================
FEISHU_APP_ID=
FEISHU_APP_SECRET=
FEISHU_SEARCH_URL=
# ============================================
# 管理后台首个管理员初始化
# 生产环境必须替换为安全账号密码,不能使用 admin123456
# ============================================
APP_ENV=production
MYSQL_ROOT_PASSWORD=replace-with-strong-root-password
MYSQL_PASSWORD=replace-with-strong-database-password
REDIS_PASSWORD=replace-with-strong-redis-password
DATABASE_URL=mysql+pymysql://ai_kb:URL编码后的数据库密码@mysql:3306/ai_knowledge_base_v2?charset=utf8mb4
REDIS_URL=redis://:URL编码后的Redis密码@redis:6379/0
JWT_SECRET_KEY=replace-with-at-least-32-random-characters
# 使用命令生成python -c "from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())"
CONFIG_ENCRYPTION_KEY=replace-with-generated-fernet-key
BOOTSTRAP_ADMIN_USERNAME=admin
BOOTSTRAP_ADMIN_PASSWORD=replace-with-strong-password
BOOTSTRAP_ADMIN_NAME=系统管理员
# ============================================
# 内网穿透frpc sidecar
# 启动 docker compose 前,拷贝本文件为 .env 并填写
# 或直接在 shell 中 export 这些变量
# ============================================
FRP_SERVER_ADDR=your-server-ip
FRP_SERVER_PORT=7000
FRP_AUTH_TOKEN=your-auth-token
FRP_PROXY_NAME=qa-web
# 默认穿透统一入口 gateway:80由 gateway 按路径转发到用户端、后台和 API
FRP_LOCAL_IP=gateway
FRP_LOCAL_PORT=80
# 自定义域名逗号分隔qa.huiyushuyuan.cn
FRP_CUSTOM_DOMAINS=qa.huiyushuyuan.cn