MCPcopy Create free account
hub / github.com/astercloud/aster / ProductionConfig

Function ProductionConfig

server/config.go:217–229  ·  view source on GitHub ↗

ProductionConfig returns a configuration suitable for production

()

Source from the content-addressed store, hash-verified

215
216// ProductionConfig returns a configuration suitable for production
217func 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}

Callers

nothing calls this directly

Calls 1

DefaultConfigFunction · 0.70

Tested by

no test coverage detected