Fix FastAPI deprecation warnings and lengthen demo SECRET_KEY
Browse filesFiles changed (5)
11 unmodified lines1213141516171811 unmodified linesENV DB_DIR=/dataENV ENVIRONMENT=productionENV SECRET_KEY=qaloop-demo-secret-keyENV PYTHONUNBUFFERED=1RUN chmod +x scripts/space_entrypoint.sh11 unmodified lines1213141516171811 unmodified linesENV DB_DIR=/dataENV ENVIRONMENT=productionENV SECRET_KEY=qaloop-demo-jwt-secret-key-32bytesENV PYTHONUNBUFFERED=1RUN chmod +x scripts/space_entrypoint.sh
39 unmodified lines4041424344454610 unmodified lines5758596061626339 unmodified lines| 配置项 | 默认值 | 说明 ||--------|--------|------|| `SECRET_KEY` | `qaloop-demo-secret-key` | JWT 签名密钥(Demo 用,勿用于正式部署) || `ADMIN_USERNAME` | `admin` | 首次启动自动创建的管理员 || `ADMIN_PASSWORD` | `123456` | 管理员密码 || `DB_DIR` | `/data` | 数据库存储目录 |10 unmodified lines| Secret | Demo 默认 | 说明 ||--------|-----------|------|| `SECRET_KEY` | `qaloop-demo-secret-key` | JWT 密钥,正式环境请改为随机字符串 || `ADMIN_USERNAME` | `admin` | 首次启动自动创建的管理员用户名 || `ADMIN_PASSWORD` | `123456` | 管理员密码(至少 6 位) |39 unmodified lines4041424344454610 unmodified lines5758596061626339 unmodified lines| 配置项 | 默认值 | 说明 ||--------|--------|------|| `SECRET_KEY` | `qaloop-demo-jwt-secret-key-32bytes` | JWT 签名密钥(Demo 用,勿用于正式部署) || `ADMIN_USERNAME` | `admin` | 首次启动自动创建的管理员 || `ADMIN_PASSWORD` | `123456` | 管理员密码 || `DB_DIR` | `/data` | 数据库存储目录 |10 unmodified lines| Secret | Demo 默认 | 说明 ||--------|-----------|------|| `SECRET_KEY` | `qaloop-demo-jwt-secret-key-32bytes` | JWT 密钥,正式环境请改为随机字符串 || `ADMIN_USERNAME` | `admin` | 首次启动自动创建的管理员用户名 || `ADMIN_PASSWORD` | `123456` | 管理员密码(至少 6 位) |
588 unmodified lines589590591592593594595588 unmodified linesdef export_dataset_annotation_results(dataset_id: int,format: str = Query("json", regex="^(json|csv)$", description="导出格式:json 或 csv"),db: Session = Depends(get_db),current_user: User = Depends(get_current_superuser),588 unmodified lines589590591592593594595588 unmodified linesdef export_dataset_annotation_results(dataset_id: int,format: str = Query("json", pattern="^(json|csv)$", description="导出格式:json 或 csv"),db: Session = Depends(get_db),current_user: User = Depends(get_current_superuser),
1003 unmodified lines10041005100610071008100910101003 unmodified linesdef export_project_annotations(project_id: int,format: str = Query("json", regex="^(json|csv)$", description="导出格式:json 或 csv"),db: Session = Depends(get_db),current_user: User = Depends(get_current_superuser),1003 unmodified lines10041005100610071008100910101003 unmodified linesdef export_project_annotations(project_id: int,format: str = Query("json", pattern="^(json|csv)$", description="导出格式:json 或 csv"),db: Session = Depends(get_db),current_user: User = Depends(get_current_superuser),
31 unmodified lines3233343536373831 unmodified lines# 认证配置TOKEN_EXPIRE_DAYS: int = 7 # Token过期天数SECRET_KEY: str = "qaloop-demo-secret-key" # JWT密钥,Demo 默认值,生产环境务必修改ALGORITHM: str = "HS256" # JWT算法# SQLAlchemy配置31 unmodified lines3233343536373831 unmodified lines# 认证配置TOKEN_EXPIRE_DAYS: int = 7 # Token过期天数SECRET_KEY: str = "qaloop-demo-jwt-secret-key-32bytes" # JWT密钥,Demo 默认值,生产环境务必修改ALGORITHM: str = "HS256" # JWT算法# SQLAlchemy配置
Dockerfile+1-1
README.md+2-2
qa_annotate/api/annotation.py+1-1
qa_annotate/api/project.py+1-1
qa_annotate/config.py+1-1