config.yaml 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # 标注平台配置文件
  2. # JWT 配置
  3. jwt:
  4. secret_key: "your-secret-key-here" # 生产环境请修改
  5. algorithm: "HS256"
  6. access_token_expire_minutes: 15
  7. refresh_token_expire_days: 7
  8. # OAuth 2.0 单点登录配置
  9. oauth:
  10. enabled: true
  11. base_url: "http://192.168.92.61:8000"
  12. client_id: "sRyfcQwNVoFimigzuuZxhqd36fPkVN5G"
  13. client_secret: "96RuKb4obAn9bQ9i5NtINiKBMvF_9uuCR7eNzD9dWQMbOWZaV3P593-8yLOqzWRd"
  14. redirect_uri: "http://192.168.92.61:9003/auth/callback"
  15. scope: "profile email"
  16. # OAuth 端点
  17. authorize_endpoint: "/oauth/login"
  18. token_endpoint: "/oauth/token"
  19. userinfo_endpoint: "/oauth/userinfo"
  20. revoke_endpoint: "/oauth/revoke"
  21. # 数据库配置
  22. database:
  23. type: "mysql" # sqlite 或 mysql
  24. path: "annotation_platform.db" # SQLite 文件路径(仅 type=sqlite 时使用)
  25. # MySQL 配置(仅 type=mysql 时使用)
  26. mysql:
  27. host: "192.168.92.61"
  28. port: 13306
  29. user: "root"
  30. password: "Lq123456!"
  31. database: "annotation_platform"
  32. # 服务器配置
  33. server:
  34. host: "0.0.0.0"
  35. port: 8003
  36. reload: true