Skip to content
This repository has been archived by the owner on Apr 17, 2019. It is now read-only.

WIP: [nginx-ingress-controller] Add support for rewrite #1079

Merged
merged 2 commits into from
May 31, 2016

Conversation

aledbf
Copy link
Contributor

@aledbf aledbf commented May 26, 2016

fixes #860


const (
rewriteTo = "ingress-nginx.kubernetes.io/rewrite-to"
addBaseURL = "ingress-nginx.kubernetes.io/add-base-url"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add an example in the readme with how these interact with the controller and ingresses in the cluster

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, this is what's missing now

@bprashanth
Copy link

Looks good, mostly just stylistic comments. Rewrites are so common that I think we should document this with ample examples (with without base, with regex etc).

@@ -0,0 +1,67 @@

Create an Ingress rule with a rewrite annotation:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you also add an examble with base path?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, I'm searching for a sample app :)

@bprashanth
Copy link

You have a merge conflict, LGTM but for the doc nit

@aledbf
Copy link
Contributor Author

aledbf commented May 31, 2016

@bprashanth can we left the missing example for #1104?

@bprashanth bprashanth merged commit d65ebd5 into kubernetes-retired:master May 31, 2016
@aledbf aledbf deleted the ingress-redirect branch May 31, 2016 16:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Nginx Ingress Controller - the /foo redirection is not working ?
3 participants