mirror of
https://github.com/livekit/livekit.git
synced 2026-08-28 22:18:16 +00:00
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,
|
||||
Username: config.Redis.Username,
|
||||
Password: config.Redis.Password,
|
||||
DB: config.Redis.DB,
|
||||
})
|
||||
if err = rc.Ping(context.Background()).Err(); err != nil {
|
||||
err = errors.Wrap(err, "unable to connect to redis")
|
||||
|
||||
@@ -52,6 +52,7 @@ type RedisConfig struct {
|
||||
Address string `yaml:"address"`
|
||||
Username string `yaml:"username"`
|
||||
Password string `yaml:"password"`
|
||||
DB int `yaml:"db"`
|
||||
}
|
||||
|
||||
type TURNConfig struct {
|
||||
|
||||
Reference in New Issue
Block a user