Controller: Several security fixes. (#13069)
Co-authored-by: Tabitha Sable <tabitha.c.sable@gmail.com>
This commit is contained in:
parent
cfd4d89a56
commit
626305229f
7 changed files with 36 additions and 15 deletions
|
|
@ -1627,11 +1627,11 @@ func buildMirrorLocations(locs []*ingress.Location) string {
|
|||
mapped.Insert(loc.Mirror.Source)
|
||||
buffer.WriteString(fmt.Sprintf(`location = %v {
|
||||
internal;
|
||||
proxy_set_header Host "%v";
|
||||
proxy_pass "%v";
|
||||
proxy_set_header Host %v;
|
||||
proxy_pass %v;
|
||||
}
|
||||
|
||||
`, loc.Mirror.Source, loc.Mirror.Host, loc.Mirror.Target))
|
||||
`, strconv.Quote(loc.Mirror.Source), strconv.Quote(loc.Mirror.Host), strconv.Quote(loc.Mirror.Target)))
|
||||
}
|
||||
|
||||
return buffer.String()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue