mirror of
https://github.com/LBRYFoundation/herald.go.git
synced 2025-08-23 17:47:27 +00:00
Fix es host prefix
This commit is contained in:
parent
e5a9a23e9b
commit
dc71fb1a99
1 changed files with 4 additions and 0 deletions
4
main.go
4
main.go
|
@ -87,6 +87,10 @@ func parseArgs(searchRequest *pb.SearchRequest) *server.Args {
|
||||||
args.EsHost = esHost
|
args.EsHost = esHost
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if !strings.HasPrefix(args.EsHost, "http") {
|
||||||
|
args.EsHost = "http://" + args.EsHost
|
||||||
|
}
|
||||||
|
|
||||||
if esPort, ok := environment["ELASTIC_PORT"]; ok {
|
if esPort, ok := environment["ELASTIC_PORT"]; ok {
|
||||||
args.EsPort = esPort
|
args.EsPort = esPort
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue