config.docker.yaml 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # Docker 环境配置文件模板
  2. # 复制此文件为 config.yaml 并修改配置
  3. # JWT 配置
  4. jwt:
  5. # 生产环境请使用强随机密钥
  6. # 生成方式: python -c "import secrets; print(secrets.token_urlsafe(32))"
  7. secret_key: "CHANGE_THIS_TO_A_SECURE_RANDOM_KEY"
  8. algorithm: "HS256"
  9. access_token_expire_minutes: 15
  10. refresh_token_expire_days: 7
  11. # OAuth 2.0 单点登录配置
  12. oauth:
  13. enabled: false
  14. base_url: ""
  15. client_id: ""
  16. client_secret: ""
  17. redirect_uri: ""
  18. scope: "profile email"
  19. authorize_endpoint: "/oauth/login"
  20. token_endpoint: "/oauth/token"
  21. userinfo_endpoint: "/oauth/userinfo"
  22. revoke_endpoint: "/oauth/revoke"
  23. # 数据库配置
  24. database:
  25. type: "mysql" # sqlite 或 mysql
  26. path: "/app/data/annotation_platform.db" # SQLite 路径
  27. # MySQL 配置
  28. mysql:
  29. host: "192.168.92.61"
  30. port: 13306
  31. user: "root"
  32. password: "lq123"
  33. database: "annotation_platform"
  34. # 服务器配置
  35. server:
  36. host: "0.0.0.0"
  37. port: 8002
  38. reload: false # 生产环境关闭热重载