Fix error setting $service_name NGINX variable
This commit is contained in:
parent
bef2efc4f3
commit
46cca5ad40
2 changed files with 101 additions and 0 deletions
|
|
@ -871,6 +871,10 @@ func getIngressInformation(i, h, p interface{}) *ingressInformation {
|
|||
continue
|
||||
}
|
||||
|
||||
if hostname != rule.Host {
|
||||
continue
|
||||
}
|
||||
|
||||
for _, rPath := range rule.HTTP.Paths {
|
||||
if path == rPath.Path {
|
||||
info.Service = rPath.Backend.ServiceName
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue