chore: add redis config

This commit is contained in:
Jonas Kaninda
2024-11-27 11:20:20 +01:00
parent 59e2f0164b
commit 513b33fce2
3 changed files with 9 additions and 2 deletions

View File

@@ -36,6 +36,8 @@ type Server struct {
IdleTimeout int `json:"idleTimeout,omitempty" yaml:"idleTimeout,omitempty"`
// LogLevel log level, info, debug, trace, off
LogLevel string `json:"logLevel,omitempty" yaml:"logLevel,omitempty"`
// Redis contains redis database details
Redis Redis `json:"redis,omitempty" yaml:"redis,omitempty"`
// Cors holds proxy global cors
Cors Cors `json:"cors,omitempty" yaml:"cors,omitempty,omitempty"`
// InterceptErrors holds the status codes to intercept the error from backend
@@ -85,3 +87,8 @@ type RouteHealthCheck struct {
Timeout string `json:"timeout,omitempty" yaml:"timeout"`
HealthyStatuses []int `json:"healthyStatuses,omitempty" yaml:"healthyStatuses"`
}
type Redis struct {
// Addr redis hostname and port number :
Addr string `json:"addr,omitempty" yaml:"addr,omitempty"`
Password string `json:"password,omitempty" yaml:"password,omitempty"`
}