|
|
@ -60,6 +60,7 @@ var (
|
|
|
|
allowPorts string
|
|
|
|
allowPorts string
|
|
|
|
maxPoolCount int64
|
|
|
|
maxPoolCount int64
|
|
|
|
maxPortsPerClient int64
|
|
|
|
maxPortsPerClient int64
|
|
|
|
|
|
|
|
vhostHttpTimeout int64
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
func init() {
|
|
|
@ -85,6 +86,7 @@ func init() {
|
|
|
|
rootCmd.PersistentFlags().Int64VarP(&authTimeout, "auth_timeout", "", 900, "auth timeout")
|
|
|
|
rootCmd.PersistentFlags().Int64VarP(&authTimeout, "auth_timeout", "", 900, "auth timeout")
|
|
|
|
rootCmd.PersistentFlags().StringVarP(&subDomainHost, "subdomain_host", "", "", "subdomain host")
|
|
|
|
rootCmd.PersistentFlags().StringVarP(&subDomainHost, "subdomain_host", "", "", "subdomain host")
|
|
|
|
rootCmd.PersistentFlags().Int64VarP(&maxPortsPerClient, "max_ports_per_client", "", 0, "max ports per client")
|
|
|
|
rootCmd.PersistentFlags().Int64VarP(&maxPortsPerClient, "max_ports_per_client", "", 0, "max ports per client")
|
|
|
|
|
|
|
|
rootCmd.PersistentFlags().Int64VarP(&vhostHttpTimeout, "vhost_http_timeout", "", 30, "vhost http timeout")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var rootCmd = &cobra.Command{
|
|
|
|
var rootCmd = &cobra.Command{
|
|
|
@ -177,6 +179,7 @@ func parseServerCommonCfgFromCmd() (err error) {
|
|
|
|
g.GlbServerCfg.AuthTimeout = authTimeout
|
|
|
|
g.GlbServerCfg.AuthTimeout = authTimeout
|
|
|
|
g.GlbServerCfg.SubDomainHost = subDomainHost
|
|
|
|
g.GlbServerCfg.SubDomainHost = subDomainHost
|
|
|
|
g.GlbServerCfg.MaxPortsPerClient = maxPortsPerClient
|
|
|
|
g.GlbServerCfg.MaxPortsPerClient = maxPortsPerClient
|
|
|
|
|
|
|
|
g.GlbServerCfg.VhostHttpTimeout = vhostHttpTimeout
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|