Open jbenet opened 8 years ago
We can setup nginx to do the general <domain> -> <gateway>/ipns/<domain>
redirect but separate IPv4 would be needed.
@jbenet on another thread:
We probably should distinguish:
- A global gateway that people CAN remap themselves in communities.
- A definitive global gateway that we control ( (1) resolves via (2) by default )
- The project's website.
It can still be all wrapped into one domain, but probably whatever we tell people to use as links should be (1).
Other:
- gateway.ipfs.io is too long
- i think we got ipfs.link, we could prefer that one going forward. (or even fs.link or fs.io)
- the original goal was to get the ipfs TLD, we can still do that eventually.
I agree the three roles should be separated, so that we encourage remapping/hijacking in a clean and safe way. There's a trade-off here between which roles to move away from ipfs.io.
So maybe: ipfs.io stays with the IPFS team, ipfs.link is the canonical name.
We should then also stop encouraging pointing CNAME to gateway.ipfs.io for "custom-domain pages", and pointing it to ipfs.link instead. This would have the neat side-effect, that any custom-domain page could be served by a mesh-local IPFS gateway (except for the DNS lookups of course).
BTW, ipfs.link is taken -- we could try to get it, or get something like ipfs.web.
Sorry for maybe overloading the issue :) Yes we can definitely do the simple redirect of ipfs.io -> ipfs.io/ipns/ipfs.io
This might be confusing though without separating the canonical-URL-role from the project-website-role (see above).
Why not start having a "Hosted and Served through IPFS" Ribbon, like:
An then we can even add the respective hash to the ribbon, so that people could click and load it through an ipfs.io/ipfs/HASH link
I could add it to the os-protocol, and we could talk about that somewhere.
On a sidenote, the .web gTLD is auctioned on July 27th [1] so there's at least some movement in that regard.
@lgierth captured all the things. Totally agreed.
On a sidenote, the .web gTLD is auctioned on July 27th [1] so there's at least some movement in that regard.
[1] http://domainincite.com/20364-web-has-an-auction-date
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ipfs/infrastructure/issues/173#issuecomment-231618128, or mute the thread https://github.com/notifications/unsubscribe/AAIcoZnNFFO3v4B8cW2j8mZYlVI5u32lks5qUYQtgaJpZM4JD87y .
For some time I am thinking about set of small js scripts for helping support ipfs. Like: web+fs redirection, pin-it iframe when API tokens come out, it could be a ribbon too.
ipfs.link still no one?
hijacking encouraged but we should stipulate that they must return the right content, and we need to encourage users of http links to verify the content where possible.
I've got a nice idea: The ribbon could be opt-in via a DNS TXT record, so it wouldn't mess with sites that don't want to have it
For example TXT _ribbon.libp2p.io "v=1,enabled=true"
would enable the ribbon on the libp2p.io site if it is retrieved through the gateway
It could be further extended with parameters like a pattern to tell it when it should trigger (so that certain pages the are embedded in others don't have it, though it should be fairly easy to detect iFrames by default) and possibly a color/theme option.
The code to inject and display it could also be part of the upstream ipfs and hidden under an option/flag
Opinions?
Ad. "ipfs.link":
We have dweb.link
these days :)
Ad. "ribbon":
I believe Gateway operator should have the ability to flip it to opt-out and display ribbon by default if no TXT record with enabled=false
is present.
E.g. our public gateways provide bandwidth for free, and we should add ribbon by default.
CNAME/A
trick for our sites (ipfs.io, dist.ipfs.io, blog.ipfs.io, ...) is awesome<project-domain> -> <gateway>/ipns/<project-domain>
to make it OBVIOUS for now, and go back to clean later?thoughts @lgierth @whyrusleeping @diasdavid ?