# 生产环境配置 # 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: true base_url: "http://192.168.92.61:8000" client_id: "sRyfcQwNVoFimigzuuZxhqd36fPkVN5G" client_secret: "96RuKb4obAn9bQ9i5NtINiKBMvF_9uuCR7eNzD9dWQMbOWZaV3P593-8yLOqzWRd" redirect_uri: "http://192.168.92.61:9003/auth/callback" scope: "profile email" # OAuth 端点 authorize_endpoint: "/oauth/login" token_endpoint: "/oauth/token" userinfo_endpoint: "/oauth/userinfo" revoke_endpoint: "/oauth/revoke" # 数据库配置 database: type: "mysql" path: "/app/data/annotation_platform.db" mysql: host: "192.168.92.61" port: 13306 user: "root" password: "Lq123456!" database: "annotation_platform" # 服务器配置 server: host: "0.0.0.0" port: 8000 reload: false