Files
eryao/.env.example
T

84 lines
1.9 KiB
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.
# 环境变量配置模板(复制到 .env 并填写实际值)
# 警告:切勿将包含真实密钥的 .env 提交到代码仓库
############
# 运行时配置
############
ERYAO_RUNTIME__ENVIRONMENT=dev
ERYAO_RUNTIME__DEBUG=true
ERYAO_RUNTIME__LOG_LEVEL=INFO
ERYAO_RUNTIME__SQL_LOG_QUERIES=false
ERYAO_RUNTIME__TRUSTED_PROXY_IPS=[]
############
# Web 服务器配置(Uvicorn
############
ERYAO_WEB__HOST=0.0.0.0
ERYAO_WEB__PORT=8000
ERYAO_WEB__WORKERS=2
############
# Redis 配置
############
ERYAO_REDIS__PASSWORD=eryao-redis-2026
ERYAO_REDIS__HOST=localhost
ERYAO_REDIS__PORT=6379
ERYAO_REDIS__DB=0
############
# Worker 队列分组配置
############
# agent: 常规异步任务
ERYAO_WORKER__GROUPS__AGENT__CONCURRENCY=2
############
# Supabase 配置
############
ERYAO_SUPABASE__PUBLIC_URL=https://your-project.supabase.co
ERYAO_SUPABASE__ANON_KEY=
ERYAO_SUPABASE__SERVICE_ROLE_KEY=
ERYAO_SUPABASE__JWT_SECRET=
ERYAO_SUPABASE__JWT_ALGORITHM=HS256
############
# PostgreSQL 数据库配置(Supabase 本地开发)
############
ERYAO_DATABASE__HOST=localhost
ERYAO_DATABASE__PORT=5432
ERYAO_DATABASE__NAME=eryao
ERYAO_DATABASE__USER=postgres
ERYAO_DATABASE__PASSWORD=change-me-strong-password
############
# Storage 配置
############
ERYAO_STORAGE__ATTACHMENT__BUCKET=agent-attachments
ERYAO_STORAGE__AVATAR__BUCKET=avatars
ERYAO_STORAGE__SIGNED_URL_TTL_SECONDS=600
ERYAO_STORAGE__ATTACHMENT__MAX_SIZE_MB=20
ERYAO_STORAGE__AVATAR__MAX_SIZE_MB=2
ERYAO_STORAGE__RETENTION_DAYS=30
############
# LLM API KEY
############
ERYAO_LLM__PROVIDER_KEYS__DASHSCOPE=
ERYAO_LLM__PROVIDER_KEYS__DEEPSEEK=
############
# 敏感词配置
############
ERYAO_SENSITIVE_WORD__USE_ALIYUN=true
ERYAO_SENSITIVE_WORD__FALLBACK_TO_LOCAL=true
############
# CORS 配置
############
ERYAO_CORS__ALLOW_ORIGINS=["http://localhost", "http://localhost:3000"]
############
# Test相关
############
ERYAO_TEST__PHONE=8613812345678
ERYAO_TEST__PASSWORD=Test@123456