| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- # 标注平台配置文件
- # JWT 配置
- jwt:
- secret_key: "your-secret-key-here" # 生产环境请修改
- 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" # sqlite 或 mysql
- path: "annotation_platform.db" # SQLite 文件路径(仅 type=sqlite 时使用)
-
- # MySQL 配置(仅 type=mysql 时使用)
- mysql:
- host: "192.168.92.61"
- port: 13306
- user: "root"
- password: "lq123"
- database: "annotation_platform"
- # 服务器配置
- server:
- host: "0.0.0.0"
- port: 8003
- reload: true
|