Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implicit description of how to use DNS with Kong in production #87

Closed
ahmadnassri opened this issue Jun 3, 2015 · 5 comments
Closed

Comments

@ahmadnassri
Copy link
Contributor

it occurred to me (from customer feedback) that the usage of Host header in examples are causing some confusion for people.

basically, its empowering the assumption that you need to call the proxy address directly and pass a Host header, where in a real-world implementation, you should be able to point any DNS address (domain / subdomain) to your proxy network address and no longer require passing of a Host header in your HTTP request.

this is not an obvious conclusion from following the tutorial and reading the docs, and it does count as a bit of an advanced knowledge for some developers.

suggestion: add a "deploying to production" section in the tutorial (at the end) that describes this as well as any related considerations when going to production.

@montanaflynn
Copy link

Here's a rough draft for the content: https://gist.github.com/montanaflynn/a3a9336384d42188a45e

Also to be potentially included (perhaps as separate sections?)

  • Firewall for admin API
  • Server Configuration (ulimit, etc...)

@thibaultcha
Copy link
Member

Is this somehow related to #80? Basically just documenting how proxying works?

@montanaflynn
Copy link

Yes it is related. I think this was specific to "production" where #80 is a general overview of Kong's proxy.

@thibaultcha
Copy link
Member

Then it should probably go like this:

  • Explain how to add an API to Kong ("notice we're using port 8001, the Admin API" bla bla)
  • Add an API with a public_dns and a path
  • Show how to make a request with a Host header
  • Show that X-Host-Override also works ("check this out if you care using it from a browser and can't use the Host header")
  • Request using the path ("check this out if you want to query an API by path")
  • Request using the path + strip_path option
  • Explain that currently Kong might need up to 60 seconds to notice a change in an API or a new API.

@nijikokun
Copy link
Contributor

#80 encompasses the entirety of the proxy layer, that includes any production related sections, unless we want this to be a part of the quickstart, otherwise it would live under the proxy section.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants