feat: initial commit
This commit is contained in:
@@ -0,0 +1,95 @@
|
||||
# 环境变量配置模板(复制到 .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
|
||||
|
||||
############
|
||||
# MySQL 数据库配置
|
||||
############
|
||||
ERYAO_DATABASE__HOST=localhost
|
||||
ERYAO_DATABASE__PORT=3306
|
||||
ERYAO_DATABASE__NAME=eryao
|
||||
ERYAO_DATABASE__USER=root
|
||||
ERYAO_DATABASE__PASSWORD=your_mysql_password_here
|
||||
|
||||
############
|
||||
# 阿里云短信配置
|
||||
############
|
||||
ERYAO_ALIYUN_SMS__ACCESS_KEY_ID=your_aliyun_access_key_id
|
||||
ERYAO_ALIYUN_SMS__ACCESS_KEY_SECRET=your_aliyun_access_key_secret
|
||||
ERYAO_ALIYUN_SMS__SIGN_NAME=your_sign_name
|
||||
ERYAO_ALIYUN_SMS__TEMPLATE_CODE=your_template_code
|
||||
|
||||
############
|
||||
# 阿里云内容安全配置
|
||||
############
|
||||
ERYAO_ALIYUN_CONTENT_SECURITY__ACCESS_KEY_ID=your_aliyun_access_key_id
|
||||
ERYAO_ALIYUN_CONTENT_SECURITY__ACCESS_KEY_SECRET=your_aliyun_access_key_secret
|
||||
|
||||
############
|
||||
# 支付宝配置
|
||||
############
|
||||
ERYAO_ALIPAY__APP_ID=your_app_id
|
||||
ERYAO_ALIPAY__MERCHANT_ID=your_merchant_id
|
||||
ERYAO_ALIPAY__PUBLIC_KEY=your_alipay_public_key
|
||||
ERYAO_ALIPAY__PRIVATE_KEY=your_alipay_private_key
|
||||
ERYAO_ALIPAY__NOTIFY_URL=https://your-domain.com/api/payment/notify
|
||||
ERYAO_ALIPAY__SANDBOX=false
|
||||
|
||||
############
|
||||
# DeepSeek API 配置
|
||||
############
|
||||
ERYAO_DEEPSEEK__API_KEY=your_deepseek_api_key
|
||||
|
||||
############
|
||||
# 认证配置
|
||||
############
|
||||
ERYAO_AUTH__TOKEN_EXPIRATION_DAYS=7
|
||||
ERYAO_AUTH__TOKEN_REFRESH_THRESHOLD_HOURS=2
|
||||
|
||||
############
|
||||
# 验证码配置
|
||||
############
|
||||
ERYAO_VERIFICATION__CODE_LENGTH=6
|
||||
ERYAO_VERIFICATION__EXPIRATION_MINUTES=5
|
||||
ERYAO_VERIFICATION__TEST_MODE=false
|
||||
|
||||
############
|
||||
# 敏感词配置
|
||||
############
|
||||
ERYAO_SENSITIVE_WORD__USE_ALIYUN=true
|
||||
ERYAO_SENSITIVE_WORD__FALLBACK_TO_LOCAL=true
|
||||
|
||||
############
|
||||
# App 版本更新配置
|
||||
############
|
||||
ERYAO_APP_VERSION__MANIFEST_PATH=deploy/static/releases/manifest.json
|
||||
ERYAO_APP_VERSION__RELEASE_PATH_PREFIX=releases
|
||||
ERYAO_APP_VERSION__DOWNLOAD_BASE_URL=
|
||||
|
||||
############
|
||||
# CORS 配置
|
||||
############
|
||||
ERYAO_CORS__ALLOW_ORIGINS=["http://localhost", "http://localhost:3000"]
|
||||
Reference in New Issue
Block a user