func GetDefaultServerConf()

in pkg/config/server.go [193:236]


func GetDefaultServerConf() ServerCommonConf {
	return ServerCommonConf{
		ServerConfig:            auth.GetDefaultServerConf(),
		BindAddr:                "0.0.0.0",
		BindPort:                7000,
		BindUDPPort:             0,
		KCPBindPort:             0,
		ProxyBindAddr:           "",
		VhostHTTPPort:           0,
		VhostHTTPSPort:          0,
		TCPMuxHTTPConnectPort:   0,
		TCPMuxPassthrough:       false,
		VhostHTTPTimeout:        60,
		DashboardAddr:           "0.0.0.0",
		DashboardPort:           0,
		DashboardUser:           "",
		DashboardPwd:            "",
		EnablePrometheus:        false,
		AssetsDir:               "",
		LogFile:                 "console",
		LogWay:                  "console",
		LogLevel:                "info",
		LogMaxDays:              3,
		DisableLogColor:         false,
		DetailedErrorsToClient:  true,
		SubDomainHost:           "",
		TCPMux:                  true,
		TCPMuxKeepaliveInterval: 60,
		TCPKeepAlive:            7200,
		AllowPorts:              make(map[int]struct{}),
		MaxPoolCount:            5,
		MaxPortsPerClient:       0,
		TLSOnly:                 false,
		TLSCertFile:             "",
		TLSKeyFile:              "",
		TLSTrustedCaFile:        "",
		HeartbeatTimeout:        90,
		UserConnTimeout:         10,
		Custom404Page:           "",
		HTTPPlugins:             make(map[string]plugin.HTTPPluginOptions),
		UDPPacketSize:           1500,
		PprofEnable:             false,
	}
}