Repository navigation
docs: same-origin ingest proxy for ad-blockers (O21) - #819
Merged
Merged
Conversation
Add /docs/ingest-proxy with Next.js rewrites, nginx, and Cloudflare Worker examples. Recommend forwarding Authorization and body only; document clientIpKeyGenerator trust boundaries (#788) and that visitor-IP spoofing via customer proxies is not supported. Path forwarding verified against production ingest through a local Node relay (401); live 204 with a QA key not run in this environment.
added 4 commits
October 19, 2026 09:25
Positive 204 through /tt Node relay with a QA key. Docker nginx and wrangler dev forward auth+body; nginx/Worker snippets now clear spoofable IP headers (rewrites pass them through — noted).
This was referenced Oct 19, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Docs page
/docs/ingest-proxywith recipes for Next.js rewrites, nginx, and a Cloudflare Worker. SDKingestUrlalready supports this; no tunnel infrastructure added.Related: #788 (client IP / rate limits), #208 (copy ingest URL).
Rate-limit / spoofing assessment
clientIpKeyGeneratortrustscf-connecting-iponly from Cloudflare peers,x-real-ipfrom Railway edge, andx-tt-client-iponly with the affiliate shared secret (not for customers). Safe recommendation: forwardAuthorization/X-API-Key+ body only; accept rate-limit IP = proxy egress (still partitioned by API key public id viaingestKeyGenerator). Do not forward spoofable visitor IP headers from browsers.Verification
/ingest/errormissing/invalid key/tt/ingest/*→ prod (no/bad key, Bearer + X-API-Key, session)wrangler devruntimeProduction use
Safe to recommend as a customer-operated reverse proxy after they confirm 204 with their key. Not a managed tunnel. Blocklist status of
api.telemetry-tracker.comremains UNVERIFIED.Test plan
/tt/ingest/errorvia rewrite, revoke key