初次提交
This commit is contained in:
30
backend/.env.test
Normal file
30
backend/.env.test
Normal file
@@ -0,0 +1,30 @@
|
||||
# 测试环境配置
|
||||
ENVIRONMENT=development
|
||||
DEBUG=True
|
||||
|
||||
# 服务器配置 - 测试端口
|
||||
HOST=0.0.0.0
|
||||
PORT=8010
|
||||
|
||||
# 数据库配置
|
||||
DATABASE_URL=mysql+pymysql://root:password@localhost:3306/mytest_db
|
||||
|
||||
# Redis配置
|
||||
REDIS_URL=redis://localhost:6379/0
|
||||
|
||||
# JWT配置
|
||||
SECRET_KEY=test-secret-key-for-testing-environment
|
||||
ALGORITHM=HS256
|
||||
ACCESS_TOKEN_EXPIRE_MINUTES=30
|
||||
REFRESH_TOKEN_EXPIRE_DAYS=7
|
||||
|
||||
# 文件上传配置
|
||||
UPLOAD_DIR=uploads
|
||||
MAX_FILE_SIZE=10485760 # 10MB
|
||||
|
||||
# CORS配置 - 允许所有来源
|
||||
ALLOWED_HOSTS=["*"]
|
||||
|
||||
# 日志配置
|
||||
LOG_LEVEL=INFO
|
||||
LOG_FILE=logs/app.log
|
||||
Reference in New Issue
Block a user