User
a4eb4d4c3a
refactor(config): split config.go into modular files
Split the monolithic config.go (~120KB) into focused modules:
- auth.go: JWT, TOTP, Turnstile, RateLimit configs
- billing.go: Billing and Pricing configs
- database.go: Database and Redis configs
- gateway.go: Gateway and Upstream configs
- gateway_sub.go: Gateway sub-configurations
- ops_and_cache.go: Ops and Cache configs
- platforms.go: Platform-specific configs
- security.go: Security-related configs
- server.go: Server configuration
- config_defaults.go: Default values
- config_defaults_detail.go: Detailed defaults
- config_helpers.go: Helper functions
- config_validate.go: Validation logic
- config_validate_gateway.go: Gateway validation
This improves:
- Code maintainability and readability
- Faster compilation (smaller files)
- Easier navigation and debugging
- Better separation of concerns
2026-04-17 07:22:55 +08:00
..
2026-04-17 07:22:55 +08:00
2026-04-15 12:02:07 +08:00
2026-04-17 07:20:54 +08:00
2026-03-27 14:33:05 +08:00
2026-04-13 14:07:12 +08:00
2026-04-15 12:02:07 +08:00
2026-04-16 13:04:03 +08:00
2026-04-16 23:16:17 +08:00
2026-04-16 23:16:17 +08:00
2026-04-17 07:20:54 +08:00
2026-04-16 22:11:15 +08:00
2026-03-09 19:55:18 +08:00
2026-04-15 12:02:07 +08:00
2026-04-05 17:11:01 +08:00