config.prod.yaml 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # 生产环境配置
  2. # JWT 配置
  3. jwt:
  4. # 生产环境请使用强随机密钥: python -c "import secrets; print(secrets.token_urlsafe(32))"
  5. secret_key: "CHANGE_THIS_TO_A_SECURE_RANDOM_KEY"
  6. algorithm: "HS256"
  7. access_token_expire_minutes: 15
  8. refresh_token_expire_days: 7
  9. # OAuth 2.0 单点登录配置
  10. oauth:
  11. enabled: true
  12. base_url: "http://192.168.92.61:8000"
  13. client_id: "sRyfcQwNVoFimigzuuZxhqd36fPkVN5G"
  14. client_secret: "96RuKb4obAn9bQ9i5NtINiKBMvF_9uuCR7eNzD9dWQMbOWZaV3P593-8yLOqzWRd"
  15. redirect_uri: "http://192.168.92.61:9003/auth/callback"
  16. scope: "profile email"
  17. # OAuth 端点
  18. authorize_endpoint: "/oauth/login"
  19. token_endpoint: "/oauth/token"
  20. userinfo_endpoint: "/oauth/userinfo"
  21. revoke_endpoint: "/oauth/revoke"
  22. # 数据库配置
  23. database:
  24. type: "mysql"
  25. path: "/app/data/annotation_platform.db"
  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: 8000
  36. reload: false