chore: add redis config
This commit is contained in:
@@ -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"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user