Files
aitsc/env.test

41 lines
806 B
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.
# ========================================
# 测试环境变量配置
# ========================================
# Flask基础配置
SECRET_KEY=test-secret-key-for-testing-only
FLASK_ENV=testing
# 数据库配置(使用内存数据库)
DATABASE_URL=sqlite:///:memory:
# OpenAI兼容API配置使用测试密钥
LLM_API_URL=https://api.test.com/v1
LLM_API_KEY=test-api-key
# 微信小程序配置(使用测试密钥)
WX_APPID=test-wx-appid
WX_SECRET=test-wx-secret
# 跨域配置
CORS_ORIGINS=*
# 日志配置
LOG_LEVEL=DEBUG
LOG_FILE=logs/test.log
# 缓存配置
CACHE_TYPE=simple
CACHE_DEFAULT_TIMEOUT=10
# 会话配置
SESSION_LIFETIME_HOURS=1
# 文件上传配置
MAX_CONTENT_LENGTH=1048576
UPLOAD_FOLDER=uploads/test
# 安全配置
WTF_CSRF_ENABLED=False
WTF_CSRF_TIME_LIMIT=300