ProductionConfig returns a configuration suitable for production
()
| 215 | |
| 216 | // ProductionConfig returns a configuration suitable for production |
| 217 | func ProductionConfig() *Config { |
| 218 | config := DefaultConfig() |
| 219 | config.Mode = "production" |
| 220 | config.CORS.AllowOrigins = []string{"https://yourdomain.com"} |
| 221 | config.Auth.APIKey.Keys = []string{} // Must be set via env |
| 222 | config.Auth.JWT.Enabled = true |
| 223 | config.RateLimit.RequestsPerIP = 1000 |
| 224 | config.Observability.Tracing.Enabled = true |
| 225 | config.Database.Driver = "postgres" |
| 226 | config.Database.DSN = "postgres://user:pass@localhost/aster" |
| 227 | config.Redis.Enabled = true |
| 228 | return config |
| 229 | } |
nothing calls this directly
no test coverage detected