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, + }, } }