# Docker 环境配置文件模板 # 复制此文件为 config.yaml 并修改配置 # JWT 配置 jwt: # 生产环境请使用强随机密钥 # 生成方式: python -c "import secrets; print(secrets.token_urlsafe(32))" secret_key: "CHANGE_THIS_TO_A_SECURE_RANDOM_KEY" algorithm: "HS256" access_token_expire_minutes: 15 refresh_token_expire_days: 7 # OAuth 2.0 单点登录配置 oauth: enabled: false base_url: "" client_id: "" client_secret: "" redirect_uri: "" scope: "profile email" authorize_endpoint: "/oauth/login" token_endpoint: "/oauth/token" userinfo_endpoint: "/oauth/userinfo" revoke_endpoint: "/oauth/revoke" # 数据库配置 database: # Docker 环境中使用挂载的数据目录 path: "/app/data/annotation_platform.db" # 服务器配置 server: host: "0.0.0.0" port: 8000 reload: false # 生产环境关闭热重载