Add X-Forwarded-Prefix on rewrites

This commit is contained in:
Max Laverse 2017-12-06 21:11:18 +01:00
parent 681663045e
commit f5953bbfa1
9 changed files with 119 additions and 25 deletions

View file

@ -259,6 +259,10 @@ type Location struct {
// DefaultBackend allows the use of a custom default backend for this location.
// +optional
DefaultBackend *apiv1.Service `json:"defaultBackend,omitempty"`
// XForwardedPrefix allows to add a header X-Forwarded-Prefix to the request with the
// original location.
// +optional
XForwardedPrefix bool `json:"xForwardedPrefix,omitempty"`
}
// SSLPassthroughBackend describes a SSL upstream server configured