Skip to content
Snippets Groups Projects
Unverified Commit cf2a8a71 authored by Shigeru Ishida's avatar Shigeru Ishida Committed by GitHub
Browse files

Configurable IP address and port to bind to in webuicfg.yaml. (#56)

parent 0e9636dd
No related branches found
No related tags found
No related merge requests found
......@@ -70,6 +70,7 @@ func (a *WebuiApp) SetReportCaller(reportCaller bool) {
func (a *WebuiApp) Start(tlsKeyLogPath string) {
// get config file info from WebUIConfig
mongodb := factory.WebuiConfig.Configuration.Mongodb
webServer := factory.WebuiConfig.Configuration.WebServer
// Connect to MongoDB
if err := mongoapi.SetMongoDB(mongodb.Name, mongodb.Url); err != nil {
......@@ -103,5 +104,9 @@ func (a *WebuiApp) Start(tlsKeyLogPath string) {
router.NoRoute(ReturnPublic())
logger.InitLog.Infoln(router.Run(":5000"))
if webServer != nil {
logger.InitLog.Infoln(router.Run(webServer.IP + ":" + webServer.PORT))
} else {
logger.InitLog.Infoln(router.Run(":5000"))
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment