# GPUStack 配置文件
# 启动方式: uv run gpustack start --config-file config.yaml

# ==================== 基础配置 ====================
gateway_mode: disabled          # 本地开发不需要gateway
debug: true                     # 开启调试模式

# ==================== 数据库配置 ====================
# database_url: postgresql://postgres:password@localhost:5432/gpustack?sslmode=disable

# ==================== SSO 统一认证平台配置 ====================
sso_base_url: http://192.168.92.61:8200
sso_client_id: jdlUTeabvYWzuv5SZquDXSBHIgyUFNeX
sso_client_secret: xdsO2JhjrbSvcIaNoyw1btucY3PRet4iLFEWk7J5s6LCApycJiQ0AOOi27EutQwO
sso_redirect_uri: http://192.168.92.151/auth/callback   # 需与平台注册的redirect_uris一致（不带8080，经Nginx访问）
sso_frontend_url: http://192.168.92.151
sso_scope: email
sso_logout_redirect_url: http://192.168.92.61:9200/login

# ==================== CORS 配置 ====================
enable_cors: true
allow_origins:
  - http://192.168.92.151
  - http://192.168.92.61:8200   # 统一认证平台（如需要跨域调用）
