config.yaml 799 B

123456789101112131415161718192021222324252627282930313233
  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://localhost:4200/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. path: "annotation_platform.db"
  24. # 服务器配置
  25. server:
  26. host: "0.0.0.0"
  27. port: 8000
  28. reload: true