added http-namespace flag

This commit is contained in:
A.Unger
2019-12-18 12:50:00 +01:00
parent 6e342276dd
commit da729b6319
2 changed files with 9 additions and 1 deletions

View File

@@ -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.

View File

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