extend/config/config.go | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
extend/config/config.go
@@ -30,7 +30,8 @@ } viper.UnmarshalKey("server", serverList) for _,s :=range *serverList { ServerMap[s.ServerId] = "http://"+s.ServerIp+":"+s.VideoPort+"/getRecordVideoPath" NgxMap[s.ServerId] = "http://"+s.NginxIp+":"+s.NginxPort+"/videosource" si := s ServerMap[si.ServerId] = "http://"+si.ServerIp+":"+si.VideoPort+"/getRecordVideoPath" NgxMap[si.ServerId] = "http://"+si.NginxIp+":"+si.NginxPort+"/videosource" } }