Add support for rewrite
This commit is contained in:
parent
6968e23f8d
commit
95e85b57e3
6 changed files with 371 additions and 0 deletions
|
|
@ -16,6 +16,10 @@ limitations under the License.
|
|||
|
||||
package nginx
|
||||
|
||||
import (
|
||||
"k8s.io/contrib/ingress/controllers/nginx/nginx/rewrite"
|
||||
)
|
||||
|
||||
// IngressConfig describes an NGINX configuration
|
||||
type IngressConfig struct {
|
||||
Upstreams []*Upstream
|
||||
|
|
@ -88,6 +92,7 @@ type Location struct {
|
|||
Path string
|
||||
IsDefBackend bool
|
||||
Upstream Upstream
|
||||
Redirect rewrite.Redirect
|
||||
}
|
||||
|
||||
// LocationByPath sorts location by path
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue