-
Notifications
You must be signed in to change notification settings - Fork 325
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
Some URL don't get redirected to the local Web-Gateway #877
Comments
@RubenKelevra I believe the issue is not caused by the redirect, but your DNS TXT records and the way DNSLink resolution works in go-ipfs. http://localhost:8080/api/v0/dns/pkg.pacman.store?r=true in go-ipfs 0.5.0 returns: {"Message":"not a valid domain name","Code":0,"Type":"error"} Some ideas:
Let me know if any of this helped. |
@RubenKelevra Also, you mention:
You don't need to run server youself. Just point DNS Not all gateway provides give TLS for such setups, but I believe Cloudflare does: This should give you https://pkg.pacman.store backed by Cloudflare's gateway |
@RubenKelevra any update on this? |
This is the way the hoster implement redirects with DNS. IPFS should ignore this record, as it isn't a dnslink-record.
I've changed my DNS to this. Didn't change anything. Another idea @lidel ?
I can't use the Cloudflare gateway. It's for hours unable to receive a perfectly working IPNS record for no apparent reason. See https://discuss.ipfs.io/t/difficulties-with-the-cloudflare-gateway/7211 |
Hm.. I filled ipfs/kubo#7439 That upstream bug is the root of the problem. IPFS Companion does not redirect to local gateway, because it gets false-negative from |
I quickly changed the api endpoint to /api/v0/name/resolve/, repackaged the extension and it worked correctly in Chromium. I don't know enough to be sure if there are any side effects of this change. Can a member of the project explain if this is an option? |
@lidel Can you please advise? |
Good catch! I believe there are no side effects. @Ktl-XV would you like to submit a PR? |
Describe the bug
I use a simple URL redirect by my domain provider, to avoid having to run a webserver myself. The redirect looks like this:
http://abc.domain.tld
-> HTTP302 ->https://ipfs.io/ipns/abc.domain.tld/
This is currently not caught by the ipfs-companion and the content is fetched from the ipfs.io web gateway.
My domain has a DNSLink-Entry to an IPNS-CID. Using this IPNS-CID directly (to ipfs.io) as a link works.
Demo-Link-Working
Demo-Link-Broken with DNSLink IPNS
Demo-Link-Broken with forward
DNSData:
Expected behavior
All 3 demo links should load the data from the local gateway.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: