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-16 09:20:23 +08:00
2026-04-15 12:02:07 +08:00
2026-04-17 07:22:55 +08:00
2026-04-13 23:09:26 +08:00
2026-04-15 12:02:07 +08:00
2026-03-07 15:17:16 +08:00
2026-04-15 23:03:48 +08:00
2026-04-15 23:03:48 +08:00
2026-02-28 15:01:20 +08:00