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

Feat/gateway subdomains #6095

Closed
wants to merge 8 commits into from
Closed

Feat/gateway subdomains #6095

wants to merge 8 commits into from

Conversation

Stebalien
Copy link
Member

Depends on ipfs/go-ipfs-config#30

  • TODO: Needs base32 peer IDs.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
(we're implementing an _actual_ proxy)

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
Instead of adding a new fake header (that could be spoofed by the client...),
just read the original request URI from the request object.

This also removes support for suborigins. They have never been implemented in
browsers and it looks like efforts have stalled. We can add support back if we
need it but, well, maintaining support was going to be more trouble than it was
worth.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
Transparently re-route all CONNECT requests back to the gateway. This way,
browsers can route IPFS-enabled websites to the daemon by setting the gateway as
a "proxy". We'll then handle these websites the same way we handle normal
DNSLink websites.

This _also_ means the IPFS Companion can route ipfs.io traffic to the local
daemon _without_ touching the URL (well, we need to replace the https part with
http).

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
Replace IPNSHostname based routing with general-purpose hostname-based routing
that also supports handling requests to "known gateways".

TODO: I'll break KnownGateways out into a config option in a later commit.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
@Stebalien Stebalien requested a review from Kubuxu as a code owner March 18, 2019 17:09
@Stebalien Stebalien closed this Mar 18, 2019
@ghost ghost assigned Stebalien Mar 18, 2019
@ghost ghost added status/in-progress In progress and removed status/in-progress In progress labels Mar 18, 2019
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