Files
opencloud/pkg/command/phoenix_simple.go
Jörn Friedrich Dreyer fa1b262bc1 introduce dedicated reva commands
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-01-17 10:25:46 +01:00

30 lines
691 B
Go

// +build simple
package command
import (
svcconfig "github.com/owncloud/ocis-phoenix/pkg/config"
"github.com/owncloud/ocis/pkg/config"
)
func configurePhoenix(cfg *config.Config) *svcconfig.Config {
cfg.Phoenix.Log.Level = cfg.Log.Level
cfg.Phoenix.Log.Pretty = cfg.Log.Pretty
cfg.Phoenix.Log.Color = cfg.Log.Color
// disable built in apps
cfg.Phoenix.Phoenix.Config.Apps = []string{}
// enable ocis-hello extension
cfg.Phoenix.Phoenix.Config.ExternalApps = []svcconfig.ExternalApp{
svcconfig.ExternalApp{
ID: "hello",
Path: "http://localhost:9105/hello.js",
Config: map[string]interface{}{
"url": "http://localhost:9105",
},
},
}
return cfg.Phoenix
}