mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-20 19:55:53 +08:00
同步Readme文件
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user