Skip to content

fix: resolve #287 — [Doc] Provide simple examples with doc hints#898

Open
chinhkrb113 wants to merge 2 commits into
cloudflare:mainfrom
chinhkrb113:docs/add-inline-comments-and-an-adapt-to-your
Open

fix: resolve #287 — [Doc] Provide simple examples with doc hints#898
chinhkrb113 wants to merge 2 commits into
cloudflare:mainfrom
chinhkrb113:docs/add-inline-comments-and-an-adapt-to-your

Conversation

@chinhkrb113
Copy link
Copy Markdown

Summary

Combined multi-file contribution:

Changes

  • docs/quick_start.md
  • pingora-core/examples/service_dependencies.rs

Why

docs/quick_start.md: The quick start presents a working load balancer but offers no commentary on what each line does or how to change it for a different deployment. The reporter's concrete failure (a 502 when swapping the upstreams for local 127.0.0.1:9000/9001 addresses) is caused by the HttpPeer being constructed with TLS enabled and an SNI of one.one.one.one, which is correct for the Cloudflare demo upstream but wrong for a plain-HTTP local server. Without comments explaining the tls boolean and the SNI argument, users cannot diagnose this. The fix is to annotate every meaningful line of the example and add an explicit section that walks through adapting it.

…hints

Fixes cloudflare#287

Signed-off-by: ChinhLee <76194645+chinhkrb113@users.noreply.github.com>
…hints

Fixes cloudflare#287

Signed-off-by: ChinhLee <76194645+chinhkrb113@users.noreply.github.com>
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

Successfully merging this pull request may close these issues.

1 participant