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

ingress/controllers/nginx: WebSocket documentation #1808

Merged
merged 1 commit into from
Oct 5, 2016
Merged

ingress/controllers/nginx: WebSocket documentation #1808

merged 1 commit into from
Oct 5, 2016

Conversation

whitlockjc
Copy link
Contributor

@whitlockjc whitlockjc commented Sep 29, 2016

For those that do not understand the default way in which nginx proxies
requests not containing a "Connection" header, the approach for enabling
WebSocket support might not make sense. This commit adds documentation
that explains why things are done this way.


This change is Reviewable

For those that do not understand the default way in which nginx proxies
requests not containing a "Connection" header, the approach for enabling
WebSocket support might not make sense.  This commit adds documentation
that explains why things are done this way.
@googlebot
Copy link

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed, please reply here (e.g. I signed it!) and we'll verify. Thanks.


  • If you've already signed a CLA, it's possible we don't have your GitHub username or you're using a different email address. Check your existing CLA data and verify that your email is set on your git commits.
  • If you signed the CLA as a corporation, please let us know the company's name.

@k8s-github-robot
Copy link

[CLA-PING] @whitlockjc

Thanks for your pull request. It looks like this may be your first contribution to a CNCF open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://identity.linuxfoundation.org/projects/cncf to sign.

Once you've signed, please reply here (e.g. "I signed it!") and we'll verify. Thanks.


@k8s-github-robot k8s-github-robot added the cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. label Sep 29, 2016
{{/* "proxy_set_header Connection $http_connection" for WebSocket support because in this case, the */}}
{{/* "Connection" header would be set to "" whenever the original request did not have a "Connection" header, */}}
{{/* which would mean no "Connection" header would be in the target request. Since this would deviate from */}}
{{/* normal nginx behavior we have to use this approach. */}}

Choose a reason for hiding this comment

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

why add this here instead of a section in the readme? or better yet, add an example under https://github.com/kubernetes/contrib/tree/master/ingress/controllers/nginx/examples and document it there?

Copy link
Contributor

Choose a reason for hiding this comment

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

@bprashanth I think this a better place because the next map changes the http behavior and the comment show the why and consequences of changing the values

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That was my thought as well. It might not make sense why we're going through all of this effort just to set the Connection header and documenting this as close to where it's happening made most sense to me. I'm up for whatever you decide.

Choose a reason for hiding this comment

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

SG, a websockets example would still be good if you have time.

@bprashanth
Copy link

Thanks for the pr, you probably need to auth linuxfoundation access to your github account so it verifies CLA

@whitlockjc
Copy link
Contributor Author

I've signed both CLAs.

@googlebot
Copy link

CLAs look good, thanks!

@k8s-github-robot k8s-github-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. and removed cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. labels Sep 30, 2016
@bprashanth
Copy link

LGTM

@aledbf
Copy link
Contributor

aledbf commented Oct 5, 2016

@bprashanth ping

@bprashanth bprashanth added the lgtm Indicates that a PR is ready to be merged. label Oct 5, 2016
@k8s-github-robot
Copy link

Automatic merge from submit-queue

@k8s-github-robot k8s-github-robot merged commit 191642e into kubernetes-retired:master Oct 5, 2016
aledbf pushed a commit to aledbf/contrib that referenced this pull request Nov 10, 2016
…ginx-connection-header

Automatic merge from submit-queue

ingress/controllers/nginx: WebSocket documentation

For those that do not understand the default way in which nginx proxies
requests not containing a "Connection" header, the approach for enabling
WebSocket support might not make sense.  This commit adds documentation
that explains why things are done this way.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants