| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- # Docker 环境配置文件模板
- # 复制此文件为 config.yaml 并修改配置
- # JWT 配置
- jwt:
- # 生产环境请使用强随机密钥
- # 生成方式: python -c "import secrets; print(secrets.token_urlsafe(32))"
- secret_key: "CHANGE_THIS_TO_A_SECURE_RANDOM_KEY"
- algorithm: "HS256"
- access_token_expire_minutes: 15
- refresh_token_expire_days: 7
- # OAuth 2.0 单点登录配置
- oauth:
- enabled: false
- base_url: ""
- client_id: ""
- client_secret: ""
- redirect_uri: ""
- scope: "profile email"
- authorize_endpoint: "/oauth/login"
- token_endpoint: "/oauth/token"
- userinfo_endpoint: "/oauth/userinfo"
- revoke_endpoint: "/oauth/revoke"
- # 数据库配置
- database:
- type: "mysql" # sqlite 或 mysql
- path: "/app/data/annotation_platform.db" # SQLite 路径
-
- # 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: false # 生产环境关闭热重载
|