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

This should really just be a new URL scheme #2

Open
stuartpb opened this issue Aug 20, 2015 · 3 comments
Open

This should really just be a new URL scheme #2

stuartpb opened this issue Aug 20, 2015 · 3 comments

Comments

@stuartpb
Copy link

Since by definition this isn't going to work with conventional host-oriented protocols such as HTTP, this should really just be something like ipfsh: for "IPFS by hash". See also: magnet (which is really what protocols doing hashed P2P should use).

@kyledrake
Copy link
Member

@stuartpb the purpose of this is to be able to use it with subdomains. Example: ciqh7a5rmv77d7ctxew4dakiuhlf37bnjmp2hvtxfbfn3uqacjwza2i.neocities.org.

I can't use magnets because they don't conform to standards for subdomains. With IPFS unixfs objects, this allows you to attach an immutable hash to a static web site that will work with the domain security model browsers support.

I realize this is pretty special purpose, but I need -something- in order to allow my users to be able to view archives of their sites from our IPFS node.

@kyledrake
Copy link
Member

Also, a magnet link doesn't give us anything here. IPFS knows how to find the data from a hash, it doesn't need anything else. It's not necessary to give it any more information than that.

@jbenet
Copy link

jbenet commented Aug 21, 2015

@stuartpb i am (currently) opposed to using the protocol scheme identifier because it breaks compatibility with unix paths. an ipfs path (uri) is self describing in the same way a regular http url (uri) is:

# http
https://github.com/neocities/hshca/issues/2

# ipfs 
/ipfs/Qmad6ntcNzeSy7QGZ7BVLgeBs4DssanposTpx23dirTJQv/hshca/issues/2

# ipns
/ipns/QmSiwkUbM8GaMUHYCCezUKMavjFcUyF3Lmay9vEfLzAsVK/hshca/issues/2

# ipns + dns
/ipns/github.com/hshca/issues/2

but the difference is that paths also work in unix, where protocol-scheme URLs do not.

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

3 participants