初次提交

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.example Normal file
View File

@@ -0,0 +1,30 @@
# 应用配置
ENVIRONMENT=development
DEBUG=True
# 服务器配置
HOST=0.0.0.0
PORT=8000
# 数据库配置
DATABASE_URL=mysql+pymysql://root:password@localhost:3306/mytest_db
# Redis配置
REDIS_URL=redis://localhost:6379/0
# JWT配置
SECRET_KEY=your-super-secret-key-change-this-in-production
ALGORITHM=HS256
ACCESS_TOKEN_EXPIRE_MINUTES=30
REFRESH_TOKEN_EXPIRE_DAYS=7
# 文件上传配置
UPLOAD_DIR=uploads
MAX_FILE_SIZE=10485760 # 10MB
# CORS配置
ALLOWED_HOSTS=["http://localhost:3000", "http://127.0.0.1:3000", "*"]
# 日志配置
LOG_LEVEL=INFO
LOG_FILE=logs/app.log