From da729b6319f873d63e63cebf3be2848d4d6c46f1 Mon Sep 17 00:00:00 2001 From: "A.Unger" Date: Wed, 18 Dec 2019 12:50:00 +0100 Subject: [PATCH] added http-namespace flag --- pkg/config/config.go | 3 ++- pkg/flagset/flagset.go | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/pkg/config/config.go b/pkg/config/config.go index 6725438616..0f330f7eec 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -37,7 +37,8 @@ type Asset struct { // Phoenix defines the available phoenic configuration. type Phoenix struct { - Path string + Path string + Namespace string } // Config combines all available configuration parts. diff --git a/pkg/flagset/flagset.go b/pkg/flagset/flagset.go index 48a68a9979..9c1567dc68 100644 --- a/pkg/flagset/flagset.go +++ b/pkg/flagset/flagset.go @@ -141,5 +141,12 @@ func ServerWithConfig(cfg *config.Config) []cli.Flag { EnvVar: "PHOENIX_WEB_CONFIG", Destination: &cfg.Phoenix.Path, }, + &cli.StringFlag{ + Name: "http-namespace", + Value: "com.owncloud", + Usage: "Set the base namespace for the http namespace", + EnvVar: "PHOENIX_NAMESPACE", + Destination: &cfg.Phoenix.Namespace, + }, } }