Commit Graph
7 Commits
Author SHA1 Message Date
Rogee 09f274e965 chore: 移除 .env.example 中 Twitter/Microsoft Channel OAuth 配置 2026-07-29 16:57:56 +08:00
Rogee 27d8d4ed08 chore: 精简 .env.example,移除未使用的配置项
移除的配置(代码中不存在消费者):
- GOCHAT_VERSION
- GOCHAT_METRICS_ENABLED / GOCHAT_METRICS_PORT
- GOCHAT_WS_* (WebSocket 配置)
- GOCHAT_ANALYTICS_* (Analytics/Reporting 配置)
- SMTP_FROM_EMAIL (代码用 SMTP_FROM / MAILER_SENDER_EMAIL)

新增 Search / Storage 段(代码中有 env binding 但 .env.example 缺失)。
Redis 改为使用 GOCHAT_REDIS_URL(代码实际消费的字段)。
SAML 补充 GOCHAT_SAML_ENABLED 开关。
2026-07-29 16:41:05 +08:00
Rogee fa6737e258 refactor: 精简配置体系,移除 OAuth 登录/Rate Limit/Admin env 配置
- 移除 .env.example 中 Feature Flags 段(代码中不存在这些 env var)
- 移除 Google/GitHub OAuth 登录认证代码(auth/oauth.go、auth_handler
  OAuthAuthorize/OAuthCallback 路由、auth_service OAuthLogin),保留
  Twitter/Google 作为消息渠道 provider
- 从 OAuthConfig 移除 GitHub 字段(Google 保留供 channel provider 使用)
- 移除 RateLimitConfig 可配置性,RateLimit 中间件改为硬编码 100 req/min、
  60s window,移除 config/validator/reloader 中的 rate_limit 相关代码
- 移除 .env.example 中 GOCHAT_ADMIN_EMAIL/PASSWORD 配置
- 新增 gochat init 命令:交互式或通过 --email/--password/--name flags
  初始化超级管理员账户,创建默认 Account + AccountUser 关联
2026-07-29 16:26:19 +08:00
rogee df23caf7d9 feat(copilot): move provider configuration to settings 2026-07-12 22:27:29 +08:00
rogee f923791d39 update 2026-07-12 12:20:23 +08:00
rogee 7f2d5579ff fix: stabilize development config and account settings 2026-07-11 17:15:38 +08:00
Rogee 8ac150bc7b second commit 2026-06-04 15:44:48 +08:00