define ocis_url as a shared option in ocis-pkg/config

This commit is contained in:
A.Unger
2021-11-04 12:58:18 +01:00
parent 4194da4e88
commit e858fa0188
6 changed files with 17 additions and 6 deletions
+1 -1
View File
@@ -18,7 +18,6 @@ func ProxyCommand(cfg *config.Config) *cli.Command {
Name: "proxy",
Usage: "Start proxy server",
Category: "Extensions",
//Flags: flagset.ServerWithConfig(cfg.Proxy),
Subcommands: []*cli.Command{
command.PrintVersion(cfg.Proxy),
},
@@ -33,6 +32,7 @@ func ProxyCommand(cfg *config.Config) *cli.Command {
}
func configureProxy(cfg *config.Config) *svcconfig.Config {
cfg.Proxy.OcisURL = cfg.OcisURL
cfg.Proxy.Log.Level = cfg.Log.Level
cfg.Proxy.Log.Pretty = cfg.Log.Pretty
cfg.Proxy.Log.Color = cfg.Log.Color