初次提交

This commit is contained in:
2025-10-14 20:05:29 +08:00
commit 6e4e48fdd2
673 changed files with 437006 additions and 0 deletions

30
backend/.env.test Normal file
View 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