split theme configuration flags
This commit is contained in:
@@ -164,16 +164,23 @@ func ServerWithConfig(cfg *config.Config) []cli.Flag {
|
||||
&cli.StringFlag{
|
||||
Name: "web-config-server",
|
||||
Value: flags.OverrideDefaultString(cfg.Web.Config.Server, "https://localhost:9200"),
|
||||
Usage: "Server URL",
|
||||
Usage: "Configuration server URL",
|
||||
EnvVars: []string{"WEB_UI_CONFIG_SERVER", "OCIS_URL"}, // WEB_UI_CONFIG_SERVER takes precedence over OCIS_URL
|
||||
Destination: &cfg.Web.Config.Server,
|
||||
},
|
||||
&cli.StringFlag{
|
||||
Name: "web-theme-server",
|
||||
Value: flags.OverrideDefaultString(cfg.Web.Config.ThemeServer, "https://localhost:9200"),
|
||||
Usage: "Theme server URL",
|
||||
EnvVars: []string{"WEB_UI_THEME_SERVER", "OCIS_URL"}, // WEB_UI_CONFIG_SERVER takes precedence over OCIS_URL
|
||||
Destination: &cfg.Web.Config.ThemeServer,
|
||||
},
|
||||
&cli.StringFlag{
|
||||
Name: "web-config-theme",
|
||||
Value: flags.OverrideDefaultString(cfg.Web.Config.Theme, "https://localhost:9200/themes/owncloud/theme.json"),
|
||||
Usage: "Theme",
|
||||
EnvVars: []string{"WEB_UI_CONFIG_THEME"},
|
||||
Destination: &cfg.Web.Config.Theme,
|
||||
Value: flags.OverrideDefaultString(cfg.Web.Config.ThemePath, "/themes/owncloud/theme.json"),
|
||||
Usage: "Theme path on the theme server",
|
||||
EnvVars: []string{"WEB_UI_THEME_PATH"},
|
||||
Destination: &cfg.Web.Config.ThemePath,
|
||||
},
|
||||
&cli.StringFlag{
|
||||
Name: "web-config-version",
|
||||
|
||||
Reference in New Issue
Block a user