allow keys to be passed in from env (again), cli to use LIVEKIT prefix
This commit is contained in:
@@ -64,6 +64,12 @@ func (conf *Config) UpdateFromCLI(c *cli.Context) error {
|
||||
if c.IsSet("key-file") {
|
||||
conf.KeyFile = c.String("key-file")
|
||||
}
|
||||
if c.IsSet("keys") {
|
||||
keys := []byte(c.String("keys"))
|
||||
if err := yaml.Unmarshal(keys, &conf.Keys); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if c.IsSet("redis-host") {
|
||||
conf.Redis.Address = c.String("redis-host")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user