support for redis db
This commit is contained in:
@@ -186,6 +186,7 @@ func createRouterAndStore(config *config.Config, node routing.LocalNode) (router
|
|||||||
Addr: config.Redis.Address,
|
Addr: config.Redis.Address,
|
||||||
Username: config.Redis.Username,
|
Username: config.Redis.Username,
|
||||||
Password: config.Redis.Password,
|
Password: config.Redis.Password,
|
||||||
|
DB: config.Redis.DB,
|
||||||
})
|
})
|
||||||
if err = rc.Ping(context.Background()).Err(); err != nil {
|
if err = rc.Ping(context.Background()).Err(); err != nil {
|
||||||
err = errors.Wrap(err, "unable to connect to redis")
|
err = errors.Wrap(err, "unable to connect to redis")
|
||||||
|
|||||||
@@ -52,6 +52,7 @@ type RedisConfig struct {
|
|||||||
Address string `yaml:"address"`
|
Address string `yaml:"address"`
|
||||||
Username string `yaml:"username"`
|
Username string `yaml:"username"`
|
||||||
Password string `yaml:"password"`
|
Password string `yaml:"password"`
|
||||||
|
DB int `yaml:"db"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type TURNConfig struct {
|
type TURNConfig struct {
|
||||||
|
|||||||
Reference in New Issue
Block a user