| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- # 生产环境配置
- # 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: true
- base_url: "http://192.168.92.61:8000"
- client_id: "nlKLQJdJK3f5ub7UDfQ_E71z2Lo3YSQx"
- client_secret: "wh0HU_9T83rYMjfLFToNxFOKcrk_8H7Ba_27nNGlPqtTf9ROCytsOgp2ue0ol5mm"
- 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"
- path: "/app/data/annotation_platform.db"
-
- mysql:
- host: "192.168.92.61"
- port: 13306
- user: "root"
- password: "Lq123456!"
- database: "annotation_platform"
- # 服务器配置
- server:
- host: "0.0.0.0"
- port: 8000
- reload: false
|