Explorar el Código

fix: 恢复config.yaml和docker-compose/.env的版本跟踪

用户要求将配置文件纳入版本控制
kinglee hace 1 semana
padre
commit
27a7e424e2
Se han modificado 2 ficheros con 24 adiciones y 3 borrados
  1. 0 3
      .gitignore
  2. 24 0
      config.yaml

+ 0 - 3
.gitignore

@@ -159,9 +159,6 @@ __pycache__/
 */ui/
 *.ma
 
-# Local config with secrets
-config.yaml
-
 # macOS
 .DS_Store
 

+ 24 - 0
config.yaml

@@ -0,0 +1,24 @@
+# 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: wh0HU_9T83rYMjfLFToNxFOKcrk_8H7Ba_27nNGlPqtTf9ROCytsOgp2ue0ol5mm
+sso_redirect_uri: http://192.168.92.151:8080/auth/callback   # 需与平台注册的redirect_uris一致
+sso_frontend_url: http://192.168.92.151:8080
+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:8080
+  - http://192.168.92.61:8200   # 统一认证平台(如需要跨域调用)