update refs to config.Phoenix.Namespace

This commit is contained in:
A.Unger
2019-12-24 11:43:18 +01:00
parent 69e594ace5
commit 4155720666
2 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -135,7 +135,7 @@ func Server(cfg *config.Config) cli.Command {
server, err := http.Server(
http.Logger(logger),
http.Context(ctx),
http.Namespace(cfg.Phoenix.Namespace),
http.Namespace(cfg.HTTP.Namespace),
http.Config(cfg),
http.Metrics(metrics),
http.Flags(flagset.RootWithConfig(cfg)),
+7 -7
View File
@@ -127,6 +127,13 @@ func ServerWithConfig(cfg *config.Config) []cli.Flag {
EnvVar: "PHOENIX_HTTP_ROOT",
Destination: &cfg.HTTP.Root,
},
&cli.StringFlag{
Name: "http-namespace",
Value: "com.owncloud.web",
Usage: "Set the base namespace for the http namespace",
EnvVar: "PHOENIX_NAMESPACE",
Destination: &cfg.HTTP.Namespace,
},
&cli.StringFlag{
Name: "asset-path",
Value: "",
@@ -141,12 +148,5 @@ func ServerWithConfig(cfg *config.Config) []cli.Flag {
EnvVar: "PHOENIX_WEB_CONFIG",
Destination: &cfg.Phoenix.Path,
},
&cli.StringFlag{
Name: "http-namespace",
Value: "com.owncloud.web",
Usage: "Set the base namespace for the http namespace",
EnvVar: "PHOENIX_NAMESPACE",
Destination: &cfg.Phoenix.Namespace,
},
}
}