configure phoenix apps

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
Jörn Friedrich Dreyer
2020-01-10 15:52:10 +01:00
parent d4a7cec319
commit 3b24c1a9bd
5 changed files with 63 additions and 15 deletions
+26
View File
@@ -0,0 +1,26 @@
// +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
cfg.Phoenix.Tracing.Enabled = false
cfg.Phoenix.HTTP.Addr = "localhost:9100"
cfg.Phoenix.HTTP.Root = "/"
cfg.Phoenix.Phoenix.Config.Apps = []string{
"draw-io",
"files",
"markdown-viewer",
"media-viewer",
"pdf-viewer",
}
return cfg.Phoenix
}