同步Readme文件

This commit is contained in:
boyce
2019-09-23 15:56:58 +08:00
parent 9623cd2735
commit 79a6b79397
8 changed files with 210 additions and 283 deletions

View File

@@ -1,9 +1,7 @@
package main
import (
"github.com/duanhf2012/origin/cluster"
"github.com/duanhf2012/origin/originnode"
"github.com/duanhf2012/origin/sysservice"
)
func main() {
@@ -13,14 +11,6 @@ func main() {
return
}
nodeCfg, _ := cluster.ReadNodeConfig("./config/nodeconfig.json", cluster.GetNodeId())
httpserver := sysservice.NewHttpServerService(nodeCfg.HttpPort) // http服务
for _, ca := range nodeCfg.CAFile {
httpserver.SetHttps(ca.CertFile, ca.KeyFile)
}
httpserver.SetPrintRequestTime(true)
node.SetupService(httpserver)
node.Init()
node.Start()
}