allow keys to be passed in from env (again), cli to use LIVEKIT prefix

This commit is contained in:
David Zhao
2021-01-25 21:34:16 -08:00
parent 1f8bb57c92
commit bd81b073d1
3 changed files with 13 additions and 2 deletions
+6
View File
@@ -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")
}